Uses of Class
org.apache.drill.exec.ops.QueryContext
Package
Description
This package contains the configuration components of ResourceManagement feature in Drill.
Defines all the selection policy implementation which can be configured with Resource Management.
Defines all the Selectors which can be assigned to a ResourcePool in the ResourceManagement configuration.
Provides resource management and queuing support for the Drill foreman.
-
Uses of QueryContext in org.apache.drill.exec.ops
ModifierConstructorDescriptionFragmentContextImpl
(DrillbitContext dbContext, BitControl.PlanFragment fragment, QueryContext queryContext, UserClientConnection connection, FunctionImplementationRegistry funcRegistry) Create a FragmentContext instance for root fragment.ViewExpansionContext
(QueryContext queryContext) -
Uses of QueryContext in org.apache.drill.exec.opt
ModifierConstructorDescriptionBasicOptimizer
(QueryContext queryContext, UserClientConnection userSession) -
Uses of QueryContext in org.apache.drill.exec.physical.base
Modifier and TypeMethodDescriptionboolean
AbstractBase.isBufferedOperator
(QueryContext queryContext) Any operator that supports spilling should override this method (and return true)boolean
PhysicalOperator.isBufferedOperator
(QueryContext queryContext) -
Uses of QueryContext in org.apache.drill.exec.physical.config
Modifier and TypeMethodDescriptionboolean
ExternalSort.isBufferedOperator
(QueryContext queryContext) The External Sort operator supports spillingboolean
HashAggregate.isBufferedOperator
(QueryContext queryContext) The Hash Aggregate operator supports spillingboolean
HashJoinPOP.isBufferedOperator
(QueryContext queryContext) The Hash Aggregate operator supports spillingboolean
SetOp.isBufferedOperator
(QueryContext queryContext) -
Uses of QueryContext in org.apache.drill.exec.planner.common
Modifier and TypeMethodDescriptionstatic PhysicalPlan
DrillStatsTable.direct
(QueryContext context, boolean outcome, String message, Object... values) static PhysicalPlan
DrillStatsTable.notRequired
(QueryContext context, String tbl) static PhysicalPlan
DrillStatsTable.notSupported
(QueryContext context, String tbl) -
Uses of QueryContext in org.apache.drill.exec.planner.fragment
ModifierConstructorDescriptionBufferedOpFinder
(QueryContext queryContext) DefaultQueryParallelizer
(boolean memoryAvailableInPlan, QueryContext queryContext) MemoryCalculator
(PlanningSet planningSet, QueryContext context) QueueQueryParallelizer
(boolean memoryPlanning, QueryContext queryContext) protected
SimpleParallelizer
(QueryContext context) -
Uses of QueryContext in org.apache.drill.exec.planner.fragment.contrib
ModifierConstructorDescriptionSplittingParallelizer
(boolean doMemoryPlanning, QueryContext context) -
Uses of QueryContext in org.apache.drill.exec.planner.physical
ModifierConstructorDescriptionPhysicalPlanCreator
(QueryContext context, Map<Prel, PrelSequencer.OpId> opIdMap) -
Uses of QueryContext in org.apache.drill.exec.planner.physical.visitor
Modifier and TypeMethodDescriptionstatic Prel
RuntimeFilterVisitor.addRuntimeFilter
(Prel prel, QueryContext queryContext) -
Uses of QueryContext in org.apache.drill.exec.planner.sql
Modifier and TypeMethodDescriptionstatic PhysicalPlan
DirectPlan.createDirectPlan
(QueryContext context, boolean result, String message) static <T> PhysicalPlan
DirectPlan.createDirectPlan
(QueryContext context, T obj) static PhysicalPlan
DrillSqlWorker.getPlan
(QueryContext context, String sql) Converts sql query string into query physical plan.static PhysicalPlan
DrillSqlWorker.getPlan
(QueryContext context, String sql, Pointer<String> textPlan) Converts sql query string into query physical plan. -
Uses of QueryContext in org.apache.drill.exec.planner.sql.conversion
-
Uses of QueryContext in org.apache.drill.exec.planner.sql.handlers
Modifier and TypeFieldDescriptionprotected final QueryContext
DefaultSqlHandler.context
protected QueryContext
ViewHandler.context
Modifier and TypeMethodDescriptionstatic void
ExplainHandler.printPlan
(Prel node, QueryContext context) ModifierConstructorDescriptionLogicalExplain
(org.apache.calcite.rel.RelNode node, org.apache.calcite.sql.SqlExplainLevel level, QueryContext context) PhysicalExplain
(org.apache.calcite.rel.RelNode node, PhysicalPlan plan, org.apache.calcite.sql.SqlExplainLevel level, QueryContext context) ResetOptionHandler
(QueryContext context) Class constructor.SetOptionHandler
(QueryContext context) SqlHandlerConfig
(QueryContext context, SqlConverter converter) UseSchemaHandler
(QueryContext context) -
Uses of QueryContext in org.apache.drill.exec.planner.sql.parser
Modifier and TypeMethodDescriptionstatic UnsupportedOperatorsVisitor
UnsupportedOperatorsVisitor.createVisitor
(QueryContext context) -
Uses of QueryContext in org.apache.drill.exec.resourcemgr.config
Modifier and TypeMethodDescriptionResourcePoolTree.selectAllQueues
(QueryContext queryContext) ResourcePoolTreeImpl.selectAllQueues
(QueryContext queryContext) CreatesQueueAssignmentResult
which contains list of all selected leaf ResourcePools and all the rejected ResourcePools for the provided query.ResourcePoolTree.selectOneQueue
(QueryContext queryContext, NodeResources queryMaxNodeResource) ResourcePoolTreeImpl.selectOneQueue
(QueryContext queryContext, NodeResources queryMaxNodeResource) Selects a leaf queue out of all the possibles leaf queues returned byResourcePoolTree.selectAllQueues(QueryContext)
for a given query based on the configuredQueueSelectionPolicy
.void
ResourcePool.visitAndSelectPool
(QueueAssignmentResult assignmentResult, QueryContext queryContext) Evaluates this pool selector to see if the query can be admitted in this pool.void
ResourcePoolImpl.visitAndSelectPool
(QueueAssignmentResult assignmentResult, QueryContext queryContext) Used to determine if a ResourcePool is selected for a given query or not. -
Uses of QueryContext in org.apache.drill.exec.resourcemgr.config.selectionpolicy
Modifier and TypeMethodDescriptionabstract ResourcePool
AbstractQueueSelectionPolicy.selectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) BestFitQueueSelection.selectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) DefaultQueueSelection.selectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) QueueSelectionPolicy.selectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) RandomQueueSelection.selectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) -
Uses of QueryContext in org.apache.drill.exec.resourcemgr.config.selectors
Modifier and TypeMethodDescriptionabstract boolean
AbstractResourcePoolSelector.isQuerySelected
(QueryContext queryContext) boolean
AclSelector.isQuerySelected
(QueryContext queryContext) Determines if a given query is selected by this ACL selector of a Resource Pool or not.boolean
AndSelector.isQuerySelected
(QueryContext queryContext) abstract boolean
ComplexSelectors.isQuerySelected
(QueryContext queryContext) boolean
DefaultSelector.isQuerySelected
(QueryContext queryContext) boolean
NotEqualSelector.isQuerySelected
(QueryContext queryContext) boolean
OrSelector.isQuerySelected
(QueryContext queryContext) boolean
ResourcePoolSelector.isQuerySelected
(QueryContext queryContext) boolean
TagSelector.isQuerySelected
(QueryContext queryContext) -
Uses of QueryContext in org.apache.drill.exec.util
Modifier and TypeMethodDescriptionstatic List<PhysicalOperator>
MemoryAllocationUtilities.getBufferedOperators
(List<PhysicalOperator> operators, QueryContext queryContext) static void
MemoryAllocationUtilities.setupBufferedMemoryAllocations
(PhysicalPlan plan, QueryContext queryContext) static void
MemoryAllocationUtilities.setupBufferedOpsMemoryAllocations
(boolean planHasMemory, List<PhysicalOperator> bufferedOperators, QueryContext queryContext) Helper method to setup Memory Allocations -
Uses of QueryContext in org.apache.drill.exec.work.foreman
Modifier and TypeMethodDescriptionForeman.getQueryContext()
Get the QueryContext created for the query. -
Uses of QueryContext in org.apache.drill.exec.work.foreman.rm
Modifier and TypeFieldDescriptionprotected QueryContext
ThrottledResourceManager.QueuedResourceAllocator.queryContext
Modifier and TypeMethodDescriptionDefaultResourceManager.DefaultResourceAllocator.getQueryContext()
ThrottledResourceManager.QueuedResourceAllocator.getQueryContext()
Modifier and TypeMethodDescriptionDefaultResourceManager.newResourceAllocator
(QueryContext queryContext) DistributedResourceManager.newResourceAllocator
(QueryContext queryContext) DynamicResourceManager.newResourceAllocator
(QueryContext queryContext) ResourceManager.newResourceAllocator
(QueryContext queryContext) Create a resource manager to prepare or describe a query.ThrottledResourceManager.newResourceAllocator
(QueryContext queryContext) ModifierConstructorDescriptionprotected
DefaultResourceAllocator
(QueryContext queryContext) protected
QueuedResourceAllocator
(ThrottledResourceManager rm, QueryContext queryContext)