Package org.apache.druid.query.scan
Class ScanResultValueIterator
java.lang.Object
org.apache.druid.query.scan.ScanResultValueIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<ScanResultValue>,CloseableIterator<ScanResultValue>
Iterates over the scan result sequence and provides an interface to clean up the resources (if any) to close the
underlying sequence. Similar to
Yielder, once close is called on the iterator, the calls to the rest of the
iterator's methods are undefined.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.java.util.common.parsers.CloseableIterator
flatMap, mapMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ScanResultValueIterator
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<ScanResultValue>
-
next
- Specified by:
nextin interfaceIterator<ScanResultValue>
-