IndicesRequest, IndicesRequest.Replaceable, Streamable, Writeable, TaskAwareRequestpublic class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
| Modifier and Type | Class | Description |
|---|---|---|
static class |
UpgradeRequest.Defaults |
IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>indices| Constructor | Description |
|---|---|
UpgradeRequest() |
|
UpgradeRequest(java.lang.String... indices) |
Constructs an optimization request over one or more indices.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
|
boolean |
upgradeOnlyAncientSegments() |
Should the upgrade only the ancient (older major version of Lucene) segments?
Defaults to false.
|
UpgradeRequest |
upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
getShouldStoreResultindices, indices, indicesOptions, indicesOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic UpgradeRequest(java.lang.String... indices)
indices - The indices to upgrade, no indices passed means all indices will be optimized.public UpgradeRequest()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BroadcastRequest<UpgradeRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class BroadcastRequest<UpgradeRequest>java.io.IOExceptionpublic boolean upgradeOnlyAncientSegments()
public UpgradeRequest upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
public java.lang.String toString()
toString in class java.lang.Object