Package org.apache.pinot.query.runtime
Class QueryRunner
- java.lang.Object
-
- org.apache.pinot.query.runtime.QueryRunner
-
public class QueryRunner extends Object
QueryRunneraccepts aDistributedStagePlanand runs it.
-
-
Constructor Summary
Constructors Constructor Description QueryRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(long requestId)ExecutorServicegetExecutorService()voidinit(org.apache.pinot.spi.env.PinotConfiguration config, InstanceDataManager instanceDataManager, org.apache.helix.HelixManager helixManager, ServerMetrics serverMetrics)Initializes the query executor.voidprocessQuery(DistributedStagePlan distributedStagePlan, Map<String,String> requestMetadata)Execute aDistributedStagePlan.voidshutDown()voidstart()
-
-
-
Method Detail
-
init
public void init(org.apache.pinot.spi.env.PinotConfiguration config, InstanceDataManager instanceDataManager, org.apache.helix.HelixManager helixManager, ServerMetrics serverMetrics)Initializes the query executor.Should be called only once and before calling any other method.
-
getExecutorService
public ExecutorService getExecutorService()
-
start
public void start()
-
shutDown
public void shutDown()
-
processQuery
public void processQuery(DistributedStagePlan distributedStagePlan, Map<String,String> requestMetadata)
Execute aDistributedStagePlan.This execution entry point should be asynchronously called by the request handler and caller should not wait for results/exceptions.
-
cancel
public void cancel(long requestId)
-
-