Search in sources :

Example 1 with NodeFetchResponse

use of io.crate.executor.transport.NodeFetchResponse in project crate by crate.

the class TransportFetchOperation method fetch.

@Override
public CompletableFuture<IntObjectMap<? extends Bucket>> fetch(String nodeId, IntObjectMap<? extends IntContainer> toFetch, boolean closeContext) {
    FutureActionListener<NodeFetchResponse, IntObjectMap<? extends Bucket>> listener = new FutureActionListener<>(GET_FETCHED);
    transportFetchNodeAction.execute(nodeId, nodeIdToReaderIdToStreamers.get(nodeId), new NodeFetchRequest(jobId, executionPhaseId, closeContext, toFetch), listener);
    return listener;
}
Also used : NodeFetchRequest(io.crate.executor.transport.NodeFetchRequest) IntObjectMap(com.carrotsearch.hppc.IntObjectMap) Bucket(io.crate.data.Bucket) FutureActionListener(io.crate.action.FutureActionListener) NodeFetchResponse(io.crate.executor.transport.NodeFetchResponse)

Aggregations

IntObjectMap (com.carrotsearch.hppc.IntObjectMap)1 FutureActionListener (io.crate.action.FutureActionListener)1 Bucket (io.crate.data.Bucket)1 NodeFetchRequest (io.crate.executor.transport.NodeFetchRequest)1 NodeFetchResponse (io.crate.executor.transport.NodeFetchResponse)1