public 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 itModifier and Type | Class and Description |
---|---|
static class |
ForceMergeRequest.Defaults |
TransportRequest.Empty
IndicesRequest.Replaceable
indices
Constructor and Description |
---|
ForceMergeRequest() |
ForceMergeRequest(java.lang.String... indices)
Constructs a merge request over one or more indices.
|
Modifier and Type | Method and 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.
|
indices, indices, indicesOptions, indicesOptions, validate
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTask, getDescription, setParentTask
public 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
Streamable
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<ForceMergeRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class BroadcastRequest<ForceMergeRequest>
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object