Interface ReadOnlyRecordIterator<K,V>
- Type Parameters:
K- Type of keysV- Type of values
- All Superinterfaces:
AutoCloseable, Closeable, Iterator<ReadOnlyRecord<K,V>>
@Public
@Evolving
public interface ReadOnlyRecordIterator<K,V>
extends Iterator<ReadOnlyRecord<K,V>>, Closeable
Iterator interface of
ReadOnlyRecord.
This is the result type of the headers-aware range/window/session IQv2 query types: it yields
ReadOnlyRecord elements directly, so each element carries its own key, value, timestamp,
and headers.
Users must call its close method explicitly upon completeness to release resources,
or use try-with-resources statement (available since JDK7) for this Closeable class.
Note that remove() is not supported.
-
Method Summary
Methods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
close
void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-