public static class DefaultResourceManager.DefaultQueryResourceManager extends DefaultResourceManager.DefaultResourceAllocator implements QueryResourceManager
| Constructor and Description |
|---|
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.
|
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.
|
getQueryContext, visitAbstractPlan, visitPhysicalPlanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitAbstractPlan, visitPhysicalPlanpublic DefaultQueryResourceManager(DefaultResourceManager rm, Foreman foreman)
public void setCost(double cost)
QueryResourceManagersetCost in interface QueryResourceManagerpublic QueryParallelizer getParallelizer(boolean memoryPlanning)
QueryResourceManagergetParallelizer in interface QueryResourceManagermemoryPlanning - memory planning needs to be done during parallelizationpublic void admit()
QueryResourceManageradmit in interface QueryResourceManagerpublic void exit()
QueryResourceManagerexit in interface QueryResourceManagerpublic boolean hasQueue()
QueryResourceManagerhasQueue in interface QueryResourceManagerpublic String queueName()
QueryResourceManagerqueueName in interface QueryResourceManagerCopyright © 2021 The Apache Software Foundation. All rights reserved.