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
headers
Constructor and Description |
---|
ForceMergeRequest() |
ForceMergeRequest(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) |
String |
toString() |
void |
writeTo(StreamOutput out) |
indices, indices, indicesOptions, indicesOptions, validate
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public ForceMergeRequest(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 IOException
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<ForceMergeRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastRequest<ForceMergeRequest>
IOException
Copyright © 2009–2016. All rights reserved.