Package org.elasticsearch.action
Class OriginalIndices
java.lang.Object
org.elasticsearch.action.OriginalIndices
- All Implemented Interfaces:
IndicesRequest
Used to keep track of original indices within internal (e.g. shard level) requests
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOriginalIndices(String[] indices, IndicesOptions indicesOptions)
OriginalIndices(IndicesRequest indicesRequest)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether the request should be applied to data streams.String[]
indices()
Returns the array of indices that the action relates toReturns the indices options used to resolve indices.static OriginalIndices
toString()
static void
writeOriginalIndices(OriginalIndices originalIndices, StreamOutput out)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices
-
Field Details
-
NONE
-
-
Constructor Details
-
OriginalIndices
-
OriginalIndices
-
-
Method Details
-
indices
Description copied from interface:IndicesRequest
Returns the array of indices that the action relates to- Specified by:
indices
in interfaceIndicesRequest
-
indicesOptions
Description copied from interface:IndicesRequest
Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptions
in interfaceIndicesRequest
-
includeDataStreams
public boolean includeDataStreams()Description copied from interface:IndicesRequest
Determines whether the request should be applied to data streams. Whenfalse
, none of the names or wildcard expressions inIndicesRequest.indices()
should be applied to or expanded to any data streams. All layers involved in the request's fulfillment including security, name resolution, etc., should respect this flag.- Specified by:
includeDataStreams
in interfaceIndicesRequest
-
readOriginalIndices
- Throws:
IOException
-
writeOriginalIndices
public static void writeOriginalIndices(OriginalIndices originalIndices, StreamOutput out) throws IOException- Throws:
IOException
-
toString
-