public class SimpleParallelizer extends Object
Constructor and Description |
---|
SimpleParallelizer(long parallelizationThreshold,
int maxWidthPerNode,
int maxGlobalWidth,
double affinityFactor) |
SimpleParallelizer(QueryContext context) |
Modifier and Type | Method and Description |
---|---|
QueryWorkUnit |
getFragments(OptionList options,
CoordinationProtos.DrillbitEndpoint foremanNode,
UserBitShared.QueryId queryId,
Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints,
PhysicalPlanReader reader,
Fragment rootFragment,
UserSession session,
BitControl.QueryContextInformation queryContextInfo)
Generate a set of assigned fragments based on the provided fragment tree.
|
void |
initFragmentWrappers(Fragment rootFragment,
PlanningSet planningSet) |
public SimpleParallelizer(QueryContext context)
public SimpleParallelizer(long parallelizationThreshold, int maxWidthPerNode, int maxGlobalWidth, double affinityFactor)
public QueryWorkUnit getFragments(OptionList options, CoordinationProtos.DrillbitEndpoint foremanNode, UserBitShared.QueryId queryId, Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints, PhysicalPlanReader reader, 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.ExecutionSetupException
public void initFragmentWrappers(Fragment rootFragment, PlanningSet planningSet)
Copyright © 2015 The Apache Software Foundation. All rights reserved.