Class QueueAssignmentResult
java.lang.Object
org.apache.drill.exec.resourcemgr.config.QueueAssignmentResult
Used to keep track of selected leaf and all rejected
ResourcePool
for the provided query.
It is used by ResourcePoolImpl.visitAndSelectPool(QueueAssignmentResult, QueryContext)
to store
information about all the matching and non-matching ResourcePools for a query when ResourcePool selector is
evaluated against query metadata. Later it is used by
ResourcePool.visitAndSelectPool(QueueAssignmentResult, QueryContext)
to apply
QueueSelectionPolicy
to select only one queue out of all
the selected queues for a query. It also provides an API to dump all the debug information to know which pools were
selected and rejected for a query.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRejectedPool
(ResourcePool pool) void
addSelectedPool
(ResourcePool pool) void
logAssignmentResult
(String queryId) toString()