Class DefaultQueueSelection
java.lang.Object
org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy
org.apache.drill.exec.resourcemgr.config.selectionpolicy.DefaultQueueSelection
- All Implemented Interfaces:
QueueSelectionPolicy
Helps to select the first default queue in the list of all the provided queues. If there is no default queue
present it throws
QueueSelectionException
. Default queue is a queue associated with ResourcePool
which has DefaultSelector
assigned to it-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy
QueueSelectionPolicy.SelectionPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionselectQueue
(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) Methods inherited from class org.apache.drill.exec.resourcemgr.config.selectionpolicy.AbstractQueueSelectionPolicy
getSelectionPolicy
-
Constructor Details
-
DefaultQueueSelection
public DefaultQueueSelection()
-
-
Method Details
-
selectQueue
public ResourcePool selectQueue(List<ResourcePool> allPools, QueryContext queryContext, NodeResources maxResourcePerNode) throws QueueSelectionException - Specified by:
selectQueue
in interfaceQueueSelectionPolicy
- Specified by:
selectQueue
in classAbstractQueueSelectionPolicy
- Throws:
QueueSelectionException
-