- All Implemented Interfaces:
RowStream
Leaf source that streams rows from an existing list lazily (by index, without copying it).
-
Constructor Summary
Constructors
-
Method Summary
void
Release any resources held by this stream and its sources.
The next row, or null when the stream is exhausted.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ListRowStream
public ListRowStream(List<Row> rows)
-
Method Details
-
next
The next row, or null when the stream is exhausted.
- Specified by:
next in interface RowStream
-
close
public void close()
Release any resources held by this stream and its sources.
- Specified by:
close in interface RowStream