Package com.cognite.client
Class DataPoints.FlatMapIterator<T>
- java.lang.Object
-
- com.cognite.client.DataPoints.FlatMapIterator<T>
-
-
Constructor Summary
Constructors Constructor Description FlatMapIterator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
List<T>
next()
static <T> DataPoints.FlatMapIterator<T>
of(Iterator<List<List<T>>> inputIterator)
Creates a newDataPoints.FlatMapIterator
translating the inputIterator
elements by unwrapping the nested list objects.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
of
public static <T> DataPoints.FlatMapIterator<T> of(Iterator<List<List<T>>> inputIterator)
Creates a newDataPoints.FlatMapIterator
translating the inputIterator
elements by unwrapping the nested list objects.- Type Parameters:
T
- The object type of the input iterator's list.- Parameters:
inputIterator
- The iterator who's elements should be un-nested.- Returns:
- The iterator producing the mapped objects.
-
next
public List<T> next() throws NoSuchElementException
- Specified by:
next
in interfaceIterator<T>
- Throws:
NoSuchElementException
-
-