Class IteratorUtils.IteratorRelatedSourceOps<T>

java.lang.Object
scala.AnyVal
com.here.platform.data.client.utils.IteratorUtils.IteratorRelatedSourceOps<T>
Enclosing class:
IteratorUtils

public static class IteratorUtils.IteratorRelatedSourceOps<T> extends scala.AnyVal
Iterator-related operations of Source[T, NotUsed].
  • Constructor Summary

    Constructors
    Constructor
    Description
    IteratorRelatedSourceOps(org.apache.pekko.stream.scaladsl.Source<T,org.apache.pekko.NotUsed> source)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.stream.scaladsl.Source<T,org.apache.pekko.NotUsed>
     
    scala.collection.Iterator<T>
    toIterator(org.apache.pekko.stream.Materializer materializer)
    Convert Source[T, NotUsed] to Iterator[T].

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IteratorRelatedSourceOps

      public IteratorRelatedSourceOps(org.apache.pekko.stream.scaladsl.Source<T,org.apache.pekko.NotUsed> source)
  • Method Details

    • source

      public org.apache.pekko.stream.scaladsl.Source<T,org.apache.pekko.NotUsed> source()
    • toIterator

      public scala.collection.Iterator<T> toIterator(org.apache.pekko.stream.Materializer materializer)
      Convert Source[T, NotUsed] to Iterator[T].

      Parameters:
      materializer - Pekko materializer used to convert Source to Iterator.
      Returns:
      converted Iterator[T]