Class ThrottledResourceManager.QueuedResourceAllocator
java.lang.Object
org.apache.drill.exec.work.foreman.rm.ThrottledResourceManager.QueuedResourceAllocator
- All Implemented Interfaces:
QueryResourceAllocator
- Direct Known Subclasses:
ThrottledResourceManager.QueuedQueryResourceManager
- Enclosing class:
- ThrottledResourceManager
public static class ThrottledResourceManager.QueuedResourceAllocator
extends Object
implements QueryResourceAllocator
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Searches a fragment operator tree to find buffered within that fragment. -
Field Summary
Modifier and TypeFieldDescriptionprotected PhysicalPlan
protected QueryContext
protected double
protected final ThrottledResourceManager
protected QueryWorkUnit
-
Constructor Summary
ModifierConstructorDescriptionprotected
QueuedResourceAllocator
(ThrottledResourceManager rm, QueryContext queryContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
void
Make any needed adjustments to the query plan before parallelization.void
Provide the manager with the physical plan and node assignments for the query to be run.
-
Field Details
-
rm
-
queryContext
-
plan
-
work
-
queryCost
protected double queryCost
-
-
Constructor Details
-
QueuedResourceAllocator
-
-
Method Details
-
visitAbstractPlan
Description copied from interface:QueryResourceAllocator
Make any needed adjustments to the query plan before parallelization.- Specified by:
visitAbstractPlan
in interfaceQueryResourceAllocator
- Parameters:
plan
- physical plan
-
visitPhysicalPlan
Description copied from interface:QueryResourceAllocator
Provide the manager with the physical plan and node assignments for the query to be run. This class will plan memory for the query.- Specified by:
visitPhysicalPlan
in interfaceQueryResourceAllocator
- Parameters:
work
- query work unit
-
getQueryContext
-
queryMemoryPerNode
protected long queryMemoryPerNode()
-