Interface Matcher
public interface Matcher
A matcher interface for matching nodes.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(org.apache.hadoop.net.NetworkTopology cluster, org.apache.hadoop.net.Node left, org.apache.hadoop.net.Node right) Given the cluster topology, does the left node match the right node?
-
Field Details
-
SAME_NODE_GROUP
Match datanodes in the same node group. -
SAME_RACK
Match datanodes in the same rack. -
ANY_OTHER
Match any datanode with any other datanode.
-
-
Method Details
-
match
boolean match(org.apache.hadoop.net.NetworkTopology cluster, org.apache.hadoop.net.Node left, org.apache.hadoop.net.Node right) Given the cluster topology, does the left node match the right node?
-