Class Wrapper
java.lang.Object
org.apache.drill.exec.planner.fragment.Wrapper
Wrapper class that allows us to add additional information to each fragment
node for planning purposes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFragmentDependency
(Wrapper dependsOn) Add a parallelization dependency on given fragment.void
addInitialAllocation
(long memory) void
addMaxAllocation
(long memory) void
assignEndpoints
(List<CoordinationProtos.DrillbitEndpoint> assignedEndpoints) void
Compute the cpu resources required for all the minor fragments of this major fragment.getAssignedEndpoint
(int minorFragmentId) Get the list of fragements this particular fragment depends on.long
int
long
getNode()
getStats()
int
getWidth()
boolean
Is the endpoints assignment done for this fragment?void
void
setWidth
(int width) toString()
-
Constructor Details
-
Wrapper
-
-
Method Details
-
getStats
-
resetAllocation
public void resetAllocation() -
getMajorFragmentId
public int getMajorFragmentId() -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
getNode
-
getInitialAllocation
public long getInitialAllocation() -
getMaxAllocation
public long getMaxAllocation() -
addInitialAllocation
public void addInitialAllocation(long memory) -
addMaxAllocation
public void addMaxAllocation(long memory) -
assignEndpoints
public void assignEndpoints(List<CoordinationProtos.DrillbitEndpoint> assignedEndpoints) throws PhysicalOperatorSetupException - Throws:
PhysicalOperatorSetupException
-
toString
-
getAssignedEndpoints
-
getAssignedEndpoint
-
addFragmentDependency
Add a parallelization dependency on given fragment.- Parameters:
dependsOn
-
-
isEndpointsAssignmentDone
public boolean isEndpointsAssignmentDone()Is the endpoints assignment done for this fragment?- Returns:
- True if the endpoints assignment done for this fragment. False otherwise.
-
getFragmentDependencies
Get the list of fragements this particular fragment depends on.- Returns:
- The list of fragements this particular fragment depends on.
-
computeCpuResources
public void computeCpuResources()Compute the cpu resources required for all the minor fragments of this major fragment. This information is stored per DrillbitEndpoint. It is assumed that this function is called only once. -
getResourceMap
-