public interface QueryResourceManager extends QueryResourceAllocator
QueryResourceAllocator
to provide queueing support.Modifier and Type | Method and Description |
---|---|
void |
admit()
Admit the query into the cluster.
|
void |
exit()
Mark the query as completing, giving up its slot in the
cluster.
|
QueryParallelizer |
getParallelizer(boolean memoryPlanning)
Create a parallelizer to parallelize each major fragment of the query into
many minor fragments.
|
boolean |
hasQueue()
Hint that this resource manager queues.
|
String |
queueName()
Returns the name of the queue (if any) on which the query was
placed.
|
void |
setCost(double cost)
For some cases the foreman does not have a full plan, just a cost.
|
visitAbstractPlan, visitPhysicalPlan
boolean hasQueue()
void setCost(double cost)
cost
- QueryParallelizer getParallelizer(boolean memoryPlanning)
memoryPlanning
- memory planning needs to be done during parallelizationvoid admit() throws QueryQueue.QueueTimeoutException, QueryQueue.QueryQueueException
QueryQueue.QueryQueueException
- if something goes wrong with the
queue mechanismQueryQueue.QueueTimeoutException
- if the query timed out waiting to
be admitted.String queueName()
void exit()
Copyright © 1970 The Apache Software Foundation. All rights reserved.