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.
|
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, visitPhysicalPlanboolean hasQueue()
void setCost(double cost)
cost - void 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 © 2017 The Apache Software Foundation. All rights reserved.