Package org.opensearch.client.indices
Class GetIndexRequest
java.lang.Object
org.opensearch.client.TimedRequest
org.opensearch.client.indices.GetIndexRequest
- All Implemented Interfaces:
Validatable
A request to retrieve information about an index.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.opensearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_CLUSTER_MANAGER_NODE_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUTFields inherited from interface org.opensearch.client.Validatable
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeatures(GetIndexRequest.Feature... features) features()features(GetIndexRequest.Feature... features) booleanhumanReadable(boolean humanReadable) booleanWhether to return all default settings for each of the indices.includeDefaults(boolean includeDefaults) Sets the value of "include_defaults".String[]indices()The indices into which the mappings will be put.org.opensearch.action.support.IndicesOptionsindicesOptions(org.opensearch.action.support.IndicesOptions indicesOptions) final booleanlocal()Return local information, do not retrieve the state from cluster-manager node (default: false).final GetIndexRequestlocal(boolean local) Methods inherited from class org.opensearch.client.TimedRequest
clusterManagerNodeTimeout, masterNodeTimeout, setClusterManagerTimeout, setMasterTimeout, setTimeout, timeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.Validatable
validate
-
Constructor Details
-
GetIndexRequest
-
-
Method Details
-
indices
The indices into which the mappings will be put. -
indicesOptions
public org.opensearch.action.support.IndicesOptions indicesOptions() -
indicesOptions
-
local
-
local
public final boolean local()Return local information, do not retrieve the state from cluster-manager node (default: false).- Returns:
trueif local information is to be returned;falseif information is to be retrieved from cluster-manager node (default).
-
features
-
addFeatures
-
features
-
humanReadable
-
humanReadable
public boolean humanReadable() -
includeDefaults
Sets the value of "include_defaults".- Parameters:
includeDefaults- value of "include_defaults" to be set.- Returns:
- this request
-
includeDefaults
public boolean includeDefaults()Whether to return all default settings for each of the indices.- Returns:
trueif defaults settings for each of the indices need to returned;falseotherwise.
-