- All Implemented Interfaces:
- Enclosing class:
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
Method SummaryModifier and TypeMethodDescription
booleanDetermines whether the request can contain indices on a remote cluster.
booleanDetermines whether the request should be applied to data streams.
indices()Returns the array of indices that the action relates toSets the indices that the action relates to.Returns the indices options used to resolve indices.
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
DEFAULT_INDICES_OPTIONSpublic static final IndicesOptions DEFAULT_INDICES_OPTIONS
validatepublic ActionRequestValidationException validate()
writeToDescription copied from interface:
equalspublic boolean equals
hashCodepublic int hashCode()
indicespublic String indices()Returns the array of indices that the action relates to
indicesOptionspublic IndicesOptions indicesOptions()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.
indicesDescription copied from interface:
IndicesRequest.ReplaceableSets the indices that the action relates to.
allowsRemoteIndicespublic boolean allowsRemoteIndices()Description copied from interface:
IndicesRequest.ReplaceableDetermines whether the request can contain indices on a remote cluster. NOTE in theory this method can belong to the
IndicesRequestinterface because whether a request allowing remote indices has no inherent relationship to whether it is
IndicesRequest.Replaceableor not. However, we don't have an existing request that is non-replaceable but allows remote indices. In addition, authorization code currently relies on the fact that non-replaceable requests do not allow remote indices. That said, it is possible to remove this constraint should the needs arise in the future. We just need proceed with extra caution.
includeDataStreamspublic boolean includeDataStreams()Determines whether the request should be applied to data streams. When
false, none of the names or wildcard expressions in
IndicesRequest.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.