public static class DefaultResourceManager.DefaultQueryResourceManager extends DefaultResourceManager.DefaultResourceAllocator implements QueryResourceManager
| Constructor and Description |
|---|
DefaultResourceManager.DefaultQueryResourceManager(DefaultResourceManager rm,
Foreman foreman) |
| 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, visitPhysicalPlanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitAbstractPlan, visitPhysicalPlanpublic DefaultResourceManager.DefaultQueryResourceManager(DefaultResourceManager rm, Foreman foreman)
public void setCost(double cost)
QueryResourceManagersetCost in interface QueryResourceManagerpublic void admit()
QueryResourceManageradmit in interface QueryResourceManagerpublic void exit()
QueryResourceManagerexit in interface QueryResourceManagerpublic boolean hasQueue()
QueryResourceManagerhasQueue in interface QueryResourceManagerpublic String queueName()
QueryResourceManagerqueueName in interface QueryResourceManagerCopyright © 2017 The Apache Software Foundation. All rights reserved.