public interface QueryResultStream extends Iterator<QueryResult>, AutoCloseable
Modifier and Type | Method and Description |
---|---|
default boolean |
hasNext()
Validates whether there is a following entry in this stream to consume.
|
boolean |
hasNext(int timeout,
TimeUnit unit)
Validates whether there is a following entry in this stream to consume.
|
QueryResult |
next()
Returns the following
QueryResult from this stream. |
forEachRemaining, remove
close
default boolean hasNext()
hasNext
in interface Iterator<QueryResult>
true
if there is another entry, false
if there isn't for at least 1 secondboolean hasNext(int timeout, TimeUnit unit)
timeout
with the
given unit
to wait to respondtrue
if there is another entry, false
if there isn't for at the given durationQueryResult next()
QueryResult
from this stream. Might return null
if nothing is presentnext
in interface Iterator<QueryResult>
QueryResult
from this streamCopyright © 2010–2020. All rights reserved.