public static class ThrottledResourceManager.QueuedResourceAllocator extends Object implements QueryResourceAllocator
Modifier and Type | Class and Description |
---|---|
protected static class |
ThrottledResourceManager.QueuedResourceAllocator.BufferedOpFinder
Searches a fragment operator tree to find buffered within that fragment.
|
Modifier and Type | Field and Description |
---|---|
protected PhysicalPlan |
plan |
protected QueryContext |
queryContext |
protected double |
queryCost |
protected ThrottledResourceManager |
rm |
protected QueryWorkUnit |
work |
Modifier | Constructor and Description |
---|---|
protected |
QueuedResourceAllocator(ThrottledResourceManager rm,
QueryContext queryContext) |
Modifier and Type | Method and Description |
---|---|
QueryContext |
getQueryContext() |
protected long |
queryMemoryPerNode() |
void |
visitAbstractPlan(PhysicalPlan plan)
Make any needed adjustments to the query plan before parallelization.
|
void |
visitPhysicalPlan(QueryWorkUnit work)
Provide the manager with the physical plan and node assignments
for the query to be run.
|
protected final ThrottledResourceManager rm
protected QueryContext queryContext
protected PhysicalPlan plan
protected QueryWorkUnit work
protected double queryCost
protected QueuedResourceAllocator(ThrottledResourceManager rm, QueryContext queryContext)
public void visitAbstractPlan(PhysicalPlan plan)
QueryResourceAllocator
visitAbstractPlan
in interface QueryResourceAllocator
plan
- physical planpublic void visitPhysicalPlan(QueryWorkUnit work)
QueryResourceAllocator
visitPhysicalPlan
in interface QueryResourceAllocator
work
- query work unitpublic QueryContext getQueryContext()
protected long queryMemoryPerNode()
Copyright © 1970 The Apache Software Foundation. All rights reserved.