Class SoftAffinityFragmentParallelizer
java.lang.Object
org.apache.drill.exec.planner.fragment.SoftAffinityFragmentParallelizer
- All Implemented Interfaces:
FragmentParallelizer
Implementation of
FragmentParallelizer
where fragment has zero or
more endpoints with affinities. Width per node is depended on the affinity to
the endpoint and total width (calculated using costs). Based on various
factors endpoints which have no affinity can be assigned to run the
fragments.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parallelizeFragment
(Wrapper fragmentWrapper, ParallelizationParameters parameters, Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints) Parallelize the given fragment.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SoftAffinityFragmentParallelizer
public SoftAffinityFragmentParallelizer()
-
-
Method Details
-
parallelizeFragment
public void parallelizeFragment(Wrapper fragmentWrapper, ParallelizationParameters parameters, Collection<CoordinationProtos.DrillbitEndpoint> activeEndpoints) throws PhysicalOperatorSetupException Description copied from interface:FragmentParallelizer
Parallelize the given fragment.- Specified by:
parallelizeFragment
in interfaceFragmentParallelizer
- Throws:
PhysicalOperatorSetupException
-