org.elasticsearch.action.deletebyquery
Class TransportDeleteByQueryAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.replication.TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>
              extended by org.elasticsearch.action.deletebyquery.TransportDeleteByQueryAction
All Implemented Interfaces:
Action<DeleteByQueryRequest,DeleteByQueryResponse>

public class TransportDeleteByQueryAction
extends TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.replication.TransportIndicesReplicationOperationAction
clusterService, indexAction
 
Fields inherited from class org.elasticsearch.action.support.BaseAction
threadPool
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportDeleteByQueryAction(Settings settings, ClusterService clusterService, TransportService transportService, ThreadPool threadPool, TransportIndexDeleteByQueryAction indexDeleteByQueryAction)
           
 
Method Summary
protected  boolean accumulateExceptions()
           
protected  void checkBlock(DeleteByQueryRequest request, java.lang.String[] concreteIndices, ClusterState state)
           
protected  IndexDeleteByQueryRequest newIndexRequestInstance(DeleteByQueryRequest request, java.lang.String index, java.util.Set<java.lang.String> routing)
           
protected  DeleteByQueryRequest newRequestInstance()
           
protected  DeleteByQueryResponse newResponseInstance(DeleteByQueryRequest request, java.util.concurrent.atomic.AtomicReferenceArray indexResponses)
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.replication.TransportIndicesReplicationOperationAction
doExecute
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportDeleteByQueryAction

@Inject
public TransportDeleteByQueryAction(Settings settings,
                                           ClusterService clusterService,
                                           TransportService transportService,
                                           ThreadPool threadPool,
                                           TransportIndexDeleteByQueryAction indexDeleteByQueryAction)
Method Detail

newRequestInstance

protected DeleteByQueryRequest newRequestInstance()
Specified by:
newRequestInstance in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

newResponseInstance

protected DeleteByQueryResponse newResponseInstance(DeleteByQueryRequest request,
                                                    java.util.concurrent.atomic.AtomicReferenceArray indexResponses)
Specified by:
newResponseInstance in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

accumulateExceptions

protected boolean accumulateExceptions()
Specified by:
accumulateExceptions in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

checkBlock

protected void checkBlock(DeleteByQueryRequest request,
                          java.lang.String[] concreteIndices,
                          ClusterState state)
Overrides:
checkBlock in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>

newIndexRequestInstance

protected IndexDeleteByQueryRequest newIndexRequestInstance(DeleteByQueryRequest request,
                                                            java.lang.String index,
                                                            java.util.Set<java.lang.String> routing)
Specified by:
newIndexRequestInstance in class TransportIndicesReplicationOperationAction<DeleteByQueryRequest,DeleteByQueryResponse,IndexDeleteByQueryRequest,IndexDeleteByQueryResponse,ShardDeleteByQueryRequest,ShardDeleteByQueryResponse>