public class ShardStateAwareRemoteCollector extends java.lang.Object implements CrateCollector
CrateCollector.Builder
Constructor and Description |
---|
ShardStateAwareRemoteCollector(org.elasticsearch.index.shard.ShardId shardId,
RowConsumer consumer,
org.elasticsearch.cluster.service.ClusterService clusterService,
org.elasticsearch.indices.IndicesService indicesService,
java.util.function.Function<org.elasticsearch.index.shard.IndexShard,CrateCollector> localCollectorProvider,
java.util.function.Function<java.lang.String,RemoteCollector> remoteCollectorProvider,
java.util.concurrent.ExecutorService executorService,
org.elasticsearch.common.util.concurrent.ThreadContext threadContext) |
Modifier and Type | Method and Description |
---|---|
void |
doCollect() |
void |
kill(java.lang.Throwable throwable) |
public ShardStateAwareRemoteCollector(org.elasticsearch.index.shard.ShardId shardId, RowConsumer consumer, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.indices.IndicesService indicesService, java.util.function.Function<org.elasticsearch.index.shard.IndexShard,CrateCollector> localCollectorProvider, java.util.function.Function<java.lang.String,RemoteCollector> remoteCollectorProvider, java.util.concurrent.ExecutorService executorService, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
public void doCollect()
doCollect
in interface CrateCollector
public void kill(@Nullable java.lang.Throwable throwable)
kill
in interface CrateCollector