Package com.c8db
Interface C8Cursor<T>
-
- All Superinterfaces:
AutoCloseable,C8Iterable<T>,C8Iterator<T>,Closeable,Iterable<T>,Iterator<T>
- All Known Implementing Classes:
C8CursorImpl
public interface C8Cursor<T> extends C8Iterable<T>, C8Iterator<T>, Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<T>asListRemaining()IntegergetCount()StringgetId()CursorEntity.StatsgetStats()Class<T>getType()Collection<CursorEntity.Warning>getWarnings()booleanisCached()-
Methods inherited from interface com.c8db.C8Iterable
allMatch, anyMatch, collectInto, count, filter, first, foreach, iterator, map, noneMatch
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- id of temporary cursor created on the server
-
getCount
Integer getCount()
- Returns:
- the total number of result documents available (only available if the query was executed with the count attribute set)
-
getStats
CursorEntity.Stats getStats()
- Returns:
- extra information about the query result. For data-modification queries, the stats will contain the number of modified documents and the number of documents that could not be modified due to an error (if ignoreErrors query option is specified)
-
getWarnings
Collection<CursorEntity.Warning> getWarnings()
- Returns:
- warnings which the query could have been produced
-
isCached
boolean isCached()
- Returns:
- indicating whether the query result was served from the query cache or not
-
-