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
Nested ClassesModifier and TypeClassDescriptionprotected static classSearches a fragment operator tree to find buffered within that fragment. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PhysicalPlanprotected QueryContextprotected doubleprotected final ThrottledResourceManagerprotected QueryWorkUnit -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQueuedResourceAllocator(ThrottledResourceManager rm, QueryContext queryContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected longvoidMake any needed adjustments to the query plan before parallelization.voidProvide 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:QueryResourceAllocatorMake any needed adjustments to the query plan before parallelization.- Specified by:
visitAbstractPlanin interfaceQueryResourceAllocator- Parameters:
plan- physical plan
-
visitPhysicalPlan
Description copied from interface:QueryResourceAllocatorProvide 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:
visitPhysicalPlanin interfaceQueryResourceAllocator- Parameters:
work- query work unit
-
getQueryContext
-
queryMemoryPerNode
protected long queryMemoryPerNode()
-