public class OpenIndexRequest extends AcknowledgedRequest<OpenIndexRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceableDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
OpenIndexRequest() |
OpenIndexRequest(String... indices)
Constructs a new open index request for the specified index.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
indices()
The indices to be opened
|
OpenIndexRequest |
indices(String... indices)
Sets the indices to be opened
|
IndicesOptions |
indicesOptions()
Specifies what type of requested indices to ignore and how to deal with wildcard expressions.
|
OpenIndexRequest |
indicesOptions(IndicesOptions indicesOptions)
Specifies what type of requested indices to ignore and how to deal with wildcard expressions.
|
void |
readFrom(StreamInput in) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic OpenIndexRequest()
public OpenIndexRequest(String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequest<OpenIndexRequest>public String[] indices()
indices in interface IndicesRequestpublic OpenIndexRequest indices(String... indices)
indices in interface IndicesRequest.Replaceableindices - the indices to be openedpublic IndicesOptions indicesOptions()
indicesOptions in interface IndicesRequestpublic OpenIndexRequest indicesOptions(IndicesOptions indicesOptions)
indicesOptions - the desired behaviour regarding indices to ignore and wildcard indices expressionspublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeRequest<OpenIndexRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeRequest<OpenIndexRequest>IOExceptionCopyright © 2009–2017. All rights reserved.