Package org.elasticsearch.client.indices
Class GetIndexRequest
- java.lang.Object
-
- org.elasticsearch.client.TimedRequest
-
- org.elasticsearch.client.indices.GetIndexRequest
-
- All Implemented Interfaces:
Validatable
public class GetIndexRequest extends TimedRequest
A request to retrieve information about an index.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetIndexRequest.Feature
-
Field Summary
-
Fields inherited from class org.elasticsearch.client.TimedRequest
DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description GetIndexRequest(java.lang.String... indices)
-
Method Summary
Modifier and Type Method Description GetIndexRequestaddFeatures(GetIndexRequest.Feature... features)GetIndexRequest.Feature[]features()GetIndexRequestfeatures(GetIndexRequest.Feature... features)booleanhumanReadable()GetIndexRequesthumanReadable(boolean humanReadable)booleanincludeDefaults()Whether to return all default settings for each of the indices.GetIndexRequestincludeDefaults(boolean includeDefaults)Sets the value of "include_defaults".java.lang.String[]indices()The indices into which the mappings will be put.IndicesOptionsindicesOptions()GetIndexRequestindicesOptions(IndicesOptions indicesOptions)booleanlocal()Return local information, do not retrieve the state from master node (default: false).GetIndexRequestlocal(boolean local)-
Methods inherited from class org.elasticsearch.client.TimedRequest
masterNodeTimeout, setMasterTimeout, setTimeout, timeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
-
-
-
Method Detail
-
indices
public java.lang.String[] indices()
The indices into which the mappings will be put.
-
indicesOptions
public IndicesOptions indicesOptions()
-
indicesOptions
public GetIndexRequest indicesOptions(IndicesOptions indicesOptions)
-
local
public final GetIndexRequest local(boolean local)
-
local
public final boolean local()
Return local information, do not retrieve the state from master node (default: false).- Returns:
trueif local information is to be returned;falseif information is to be retrieved from master node (default).
-
features
public GetIndexRequest features(GetIndexRequest.Feature... features)
-
addFeatures
public GetIndexRequest addFeatures(GetIndexRequest.Feature... features)
-
features
public GetIndexRequest.Feature[] features()
-
humanReadable
public GetIndexRequest humanReadable(boolean humanReadable)
-
humanReadable
public boolean humanReadable()
-
includeDefaults
public GetIndexRequest includeDefaults(boolean 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.
-
-