HostSet (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.blockmanagement, class: HostSet

Package org.apache.hadoop.hdfs.server.blockmanagement

# Class HostSet

java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.HostSet

All Implemented Interfaces:
  `Iterable<InetSocketAddress>`

public class HostSet extends Object implements 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 Summary

  Constructors
  Constructor
  Description
  `HostSet()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Iterator<InetSocketAddress>`
  `iterator()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.lang.Iterable

  `forEach, spliterator`

- ## Constructor Details

  - ### HostSet

    public HostSet()

- ## Method Details

  - ### iterator

    public Iterator<InetSocketAddress> iterator()
    Specified by:
      `iterator` in interface `Iterable<InetSocketAddress>`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`