public class GetAliasesRequest extends MasterNodeReadRequest<GetAliasesRequest> implements AliasesRequest
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
GetAliasesRequest() |
GetAliasesRequest(java.lang.String alias) |
GetAliasesRequest(java.lang.String[] aliases) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
aliases()
Returns the array of aliases that the action relates to
|
GetAliasesRequest |
aliases(java.lang.String... aliases)
Sets the array of aliases that the action relates to
|
boolean |
expandAliasesWildcards()
Returns true if wildcards expressions among aliases should be resolved, false otherwise
|
java.lang.String[] |
indices()
Returns the array of indices that the action relates to
|
GetAliasesRequest |
indices(java.lang.String... indices)
Sets the indices that the action relates to.
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
GetAliasesRequest |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
local, local
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public GetAliasesRequest(java.lang.String[] aliases)
public GetAliasesRequest(java.lang.String alias)
public GetAliasesRequest()
public GetAliasesRequest indices(java.lang.String... indices)
IndicesRequest.Replaceable
indices
in interface IndicesRequest.Replaceable
public GetAliasesRequest aliases(java.lang.String... aliases)
AliasesRequest
aliases
in interface AliasesRequest
public GetAliasesRequest indicesOptions(IndicesOptions indicesOptions)
public java.lang.String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public java.lang.String[] aliases()
AliasesRequest
aliases
in interface AliasesRequest
public boolean expandAliasesWildcards()
AliasesRequest
expandAliasesWildcards
in interface AliasesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public ActionRequestValidationException validate()
validate
in class ActionRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class MasterNodeReadRequest<GetAliasesRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class MasterNodeReadRequest<GetAliasesRequest>
java.io.IOException