|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.broadcast.BroadcastOperationRequest org.elasticsearch.action.admin.indices.optimize.OptimizeRequest
public class OptimizeRequest
A request to optimize one or more indices. In order to optimize on all the indices, pass an empty array or null for the indices.
waitForMerge(boolean)
allows to control if the call will block until the optimize completes and
defaults to true.
maxNumSegments(int)
allows to control the number of segments to optimize down to. By default, will
cause the optimize process to optimize down to half the configured number of segments.
Requests.optimizeRequest(String...)
,
IndicesAdminClient.optimize(OptimizeRequest)
,
OptimizeResponse
Nested Class Summary | |
---|---|
static class |
OptimizeRequest.Defaults
|
Field Summary |
---|
Fields inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest |
---|
indices |
Constructor Summary | |
---|---|
OptimizeRequest()
|
|
OptimizeRequest(java.lang.String... indices)
Constructs an optimization request over one or more indices. |
Method Summary | |
---|---|
boolean |
flush()
Should flush be performed after the optimization. |
OptimizeRequest |
flush(boolean flush)
Should flush be performed after the optimization. |
OptimizeRequest |
listenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
int |
maxNumSegments()
Will optimize the index down to <= maxNumSegments. |
OptimizeRequest |
maxNumSegments(int maxNumSegments)
Will optimize the index down to <= maxNumSegments. |
boolean |
onlyExpungeDeletes()
Should the optimization only expunge deletes from the index, without full optimization. |
OptimizeRequest |
onlyExpungeDeletes(boolean onlyExpungeDeletes)
Should the optimization only expunge deletes from the index, without full optimization. |
OptimizeRequest |
operationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model. |
void |
readFrom(StreamInput in)
|
boolean |
refresh()
Should refresh be performed after the optimization. |
OptimizeRequest |
refresh(boolean refresh)
Should refresh be performed after the optimization. |
boolean |
waitForMerge()
Should the call block until the optimize completes. |
OptimizeRequest |
waitForMerge(boolean waitForMerge)
Should the call block until the optimize completes. |
void |
writeTo(StreamOutput out)
|
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationRequest |
---|
beforeLocalFork, indices, indices, listenerThreaded, operationThreading, operationThreading, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptimizeRequest(java.lang.String... indices)
indices
- The indices to optimize, no indices passed means all indices will be optimized.public OptimizeRequest()
Method Detail |
---|
public OptimizeRequest listenerThreaded(boolean threadedListener)
BroadcastOperationRequest
listenerThreaded
in interface ActionRequest
listenerThreaded
in class BroadcastOperationRequest
public OptimizeRequest operationThreading(BroadcastOperationThreading operationThreading)
BroadcastOperationRequest
operationThreading
in class BroadcastOperationRequest
public boolean waitForMerge()
public OptimizeRequest waitForMerge(boolean waitForMerge)
public int maxNumSegments()
public OptimizeRequest maxNumSegments(int maxNumSegments)
public boolean onlyExpungeDeletes()
public OptimizeRequest onlyExpungeDeletes(boolean onlyExpungeDeletes)
public boolean flush()
public OptimizeRequest flush(boolean flush)
public boolean refresh()
public OptimizeRequest refresh(boolean refresh)
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class BroadcastOperationRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class BroadcastOperationRequest
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |