public class Reader extends Object implements AutoCloseable, Iterator<WritableRow>
Modifier | Constructor and Description |
---|---|
protected |
Reader(Session session,
Table table,
TimeRange[] ranges) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the timeseries table and local cache so that memory can be reclaimed.
|
protected void |
finalize()
Cleans up the internal representation of the local table.
|
Table |
getTable() |
boolean |
hasNext()
Check whether there is another row available for reading or not.
|
WritableRow |
next()
Modifies internal state to move forward to the next row.
|
java.util.stream.Stream<WritableRow> |
stream()
Provides stream-based access.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public Table getTable()
protected void finalize() throws Throwable
public void close() throws IOException
close
in interface AutoCloseable
IOException
public boolean hasNext()
next
.hasNext
in interface Iterator<WritableRow>
public WritableRow next() throws InvalidIteratorException
hasNext()
.next
in interface Iterator<WritableRow>
InvalidIteratorException
- Thrown when the iterator has reached the end
and no next row is available.public java.util.stream.Stream<WritableRow> stream()
Copyright © 2021. All rights reserved.