Class PathSets

java.lang.Object
com.inductiveautomation.historian.gateway.api.paths.PathSets

public final class PathSets extends Object
Collectors for sets of qualified paths.
  • Method Details

    • toPathSet

      public static <T> Collector<T,?,Set<T>> toPathSet()
      Collects into an unmodifiable hash set. Use it instead of Collectors.toUnmodifiableSet() for path sets: that collector's Set.of table probes linearly on unspread hash codes, so runs of sequential tag names cluster into long probe chains and a large collect takes seconds instead of milliseconds.
      Type Parameters:
      T - the path type.
      Returns:
      a collector producing an unmodifiable set; safe for parallel streams.