Class HostSet
java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.HostSet
- All Implemented Interfaces:
Iterable<InetSocketAddress>
The HostSet allows efficient queries on matching wildcard addresses.
For InetSocketAddress A and B with the same host address, we define a partial order between A and B, A <= B iff A.getPort() == B .getPort() || B.getPort() == 0.
-
Constructor Details
-
HostSet
public HostSet()
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<InetSocketAddress>
-
toString
-