IndicesRequest, IndicesRequest.Replaceable, Streamable, Writeable, TaskAwareRequestpublic class ForceMergeRequest extends BroadcastRequest<ForceMergeRequest>
maxNumSegments(int) allows to control the number of segments
to force merge down to. Defaults to simply checking if a merge needs
to execute, and if so, executes it| Modifier and Type | Class | Description |
|---|---|---|
static class |
ForceMergeRequest.Defaults |
IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>indices| Constructor | Description |
|---|---|
ForceMergeRequest() |
|
ForceMergeRequest(java.lang.String... indices) |
Constructs a merge request over one or more indices.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
flush() |
Should flush be performed after the merge.
|
ForceMergeRequest |
flush(boolean flush) |
Should flush be performed after the merge.
|
int |
maxNumSegments() |
Will merge the index down to <= maxNumSegments.
|
ForceMergeRequest |
maxNumSegments(int maxNumSegments) |
Will merge the index down to <= maxNumSegments.
|
boolean |
onlyExpungeDeletes() |
Should the merge only expunge deletes from the index, without full merging.
|
ForceMergeRequest |
onlyExpungeDeletes(boolean onlyExpungeDeletes) |
Should the merge only expunge deletes from the index, without full merge.
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
|
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 ForceMergeRequest(java.lang.String... indices)
indices - The indices to merge, no indices passed means all indices will be merged.public ForceMergeRequest()
public int maxNumSegments()
public ForceMergeRequest maxNumSegments(int maxNumSegments)
public boolean onlyExpungeDeletes()
public ForceMergeRequest onlyExpungeDeletes(boolean onlyExpungeDeletes)
public boolean flush()
public ForceMergeRequest flush(boolean flush)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class BroadcastRequest<ForceMergeRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class BroadcastRequest<ForceMergeRequest>java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object