|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder<OptimizeRequest,OptimizeResponse> org.elasticsearch.client.action.admin.indices.optimize.OptimizeRequestBuilder
public class OptimizeRequestBuilder
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.
setWaitForMerge(boolean)
allows to control if the call will block until the optimize completes and
defaults to true.
setMaxNumSegments(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.
Field Summary |
---|
Fields inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder |
---|
client, request |
Constructor Summary | |
---|---|
OptimizeRequestBuilder(IndicesAdminClient indicesClient)
|
Method Summary | |
---|---|
protected void |
doExecute(ActionListener<OptimizeResponse> listener)
|
OptimizeRequestBuilder |
setFlush(boolean flush)
Should flush be performed after the optimization. |
OptimizeRequestBuilder |
setIndices(java.lang.String... indices)
|
OptimizeRequestBuilder |
setListenerThreaded(boolean threadedListener)
Should the listener be called on a separate thread if needed. |
OptimizeRequestBuilder |
setMaxNumSegments(int maxNumSegments)
Will optimize the index down to <= maxNumSegments. |
OptimizeRequestBuilder |
setOnlyExpungeDeletes(boolean onlyExpungeDeletes)
Should the optimization only expunge deletes from the index, without full optimization. |
OptimizeRequestBuilder |
setOperationThreading(BroadcastOperationThreading operationThreading)
Controls the operation threading model. |
OptimizeRequestBuilder |
setRefresh(boolean refresh)
Should refresh be performed after the optimization. |
OptimizeRequestBuilder |
setWaitForMerge(boolean waitForMerge)
Should the call block until the optimize completes. |
Methods inherited from class org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder |
---|
execute, execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptimizeRequestBuilder(IndicesAdminClient indicesClient)
Method Detail |
---|
public OptimizeRequestBuilder setIndices(java.lang.String... indices)
public OptimizeRequestBuilder setWaitForMerge(boolean waitForMerge)
public OptimizeRequestBuilder setMaxNumSegments(int maxNumSegments)
public OptimizeRequestBuilder setOnlyExpungeDeletes(boolean onlyExpungeDeletes)
public OptimizeRequestBuilder setFlush(boolean flush)
public OptimizeRequestBuilder setRefresh(boolean refresh)
public OptimizeRequestBuilder setListenerThreaded(boolean threadedListener)
public OptimizeRequestBuilder setOperationThreading(BroadcastOperationThreading operationThreading)
protected void doExecute(ActionListener<OptimizeResponse> listener)
doExecute
in class BaseIndicesRequestBuilder<OptimizeRequest,OptimizeResponse>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |