Class NodeResource
java.lang.Object
org.apache.drill.exec.planner.cost.NodeResource
This class abstracts the resources like cpu and memory used up by the operators.
In future network resources can also be incorporated if required.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(NodeResource other) static NodeResource
create()
static NodeResource
create
(long cpu) static NodeResource
create
(long cpu, long memory) long
merge
(Map<CoordinationProtos.DrillbitEndpoint, NodeResource> to, Map<CoordinationProtos.DrillbitEndpoint, NodeResource> from) toString()
-
Constructor Details
-
NodeResource
public NodeResource(long cpu, long memory)
-
-
Method Details
-
add
-
getMemory
public long getMemory() -
merge
public static Map<CoordinationProtos.DrillbitEndpoint,NodeResource> merge(Map<CoordinationProtos.DrillbitEndpoint, NodeResource> to, Map<CoordinationProtos.DrillbitEndpoint, NodeResource> from) -
toString
-
create
-
create
-
create
-