public class SimpleParallelizer extends Object implements ParallelizationParameters
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SimpleParallelizer.CountRequiredFragments
Designed to setup initial values for arriving fragment accounting.
|
| Constructor and Description |
|---|
SimpleParallelizer(long parallelizationThreshold,
int maxWidthPerNode,
int maxGlobalWidth,
double affinityFactor) |
SimpleParallelizer(QueryContext context) |
public SimpleParallelizer(QueryContext context)
public SimpleParallelizer(long parallelizationThreshold,
int maxWidthPerNode,
int maxGlobalWidth,
double affinityFactor)
public long getSliceTarget()
getSliceTarget in interface ParallelizationParameterspublic int getMaxWidthPerNode()
getMaxWidthPerNode in interface ParallelizationParameterspublic int getMaxGlobalWidth()
getMaxGlobalWidth in interface ParallelizationParameterspublic double getAffinityFactor()
getAffinityFactor in interface ParallelizationParameterspublic QueryWorkUnit getFragments(OptionList options, CoordinationProtos.DrillbitEndpoint foremanNode, UserBitShared.QueryId queryId, Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints, Fragment rootFragment, UserSession session, BitControl.QueryContextInformation queryContextInfo) throws ExecutionSetupException
options - Option listforemanNode - The driving/foreman node for this query. (this node)queryId - The queryId for this query.activeEndpoints - The list of endpoints to consider for inclusion in planning this query.reader - Tool used to read JSON plansrootFragment - The root node of the PhysicalPlan that we will be parallelizing.session - UserSession of user who launched this query.queryContextInfo - Info related to the context when query has started.ExecutionSetupExceptionpublic List<QueryWorkUnit> getSplitFragments(OptionList options, CoordinationProtos.DrillbitEndpoint foremanNode, UserBitShared.QueryId queryId, Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints, PhysicalPlanReader reader, Fragment rootFragment, UserSession session, BitControl.QueryContextInformation queryContextInfo) throws ExecutionSetupException
options - foremanNode - queryId - activeEndpoints - reader - rootFragment - session - queryContextInfo - ExecutionSetupExceptionprotected PlanningSet getFragmentsHelper(Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints, Fragment rootFragment) throws ExecutionSetupException
activeEndpoints - rootFragment - ExecutionSetupExceptionpublic void initFragmentWrappers(Fragment rootFragment, PlanningSet planningSet)
protected QueryWorkUnit generateWorkUnit(OptionList options, CoordinationProtos.DrillbitEndpoint foremanNode, UserBitShared.QueryId queryId, Fragment rootNode, PlanningSet planningSet, UserSession session, BitControl.QueryContextInformation queryContextInfo) throws ExecutionSetupException
ExecutionSetupExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.