public interface ArangoCursor<T> extends ArangoIterable<T>, ArangoIterator<T>, Closeable
Modifier and Type | Method and Description |
---|---|
List<T> |
asListRemaining() |
Integer |
getCount() |
String |
getId() |
String |
getNextBatchId() |
CursorEntity.Stats |
getStats() |
Class<T> |
getType() |
Collection<CursorEntity.Warning> |
getWarnings() |
boolean |
isCached() |
boolean |
isPotentialDirtyRead() |
T |
next()
Returns the next element in the iteration.
|
allMatch, anyMatch, collectInto, count, filter, first, foreach, iterator, map, noneMatch, stream
forEach, spliterator
forEachRemaining, hasNext, remove
String getId()
Integer getCount()
CursorEntity.Stats getStats()
Collection<CursorEntity.Warning> getWarnings()
boolean isCached()
boolean isPotentialDirtyRead()
String getNextBatchId()
T next()
AqlQueryOptions.allowRetry(Boolean)
), then it is safe to retry invoking
this method in case of I/O exceptions (which are actually thrown as ArangoDBException
with
cause IOException
).
If the cursor does not allow retries (default), then it is not safe to retry invoking this method in case of I/O
exceptions, since the request to fetch the next batch is not idempotent (i.e. the cursor may advance multiple
times on the server).next
in interface Iterator<T>
NoSuchElementException
- if the iteration has no more elementsCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.