public class CursorResult<T> extends Object implements Iterable<T>
Modifier and Type | Class and Description |
---|---|
class |
CursorResult.CursorIterator
internal iterator
|
Constructor and Description |
---|
CursorResult(String database,
InternalCursorDriver cursorDriver,
CursorEntity<T> entity,
Class<?>... clazz) |
Modifier and Type | Method and Description |
---|---|
List<T> |
asList()
Returns the objects as a list
|
void |
close()
Close cursor (removes cursor from database)
|
int |
getCount()
Get total number of results (if requested)
|
CursorEntity<T> |
getEntity()
Returns the CursorEntity object
|
int |
getFullCount()
Get total number of results for queries with LIMIT clause
|
T |
getUniqueResult()
Return a single instance that matches the query, or null if the query
returns no results.
|
List<WarningEntity> |
getWarnings()
Returns a list of AQL warnings (code and message)
|
boolean |
hasWarning()
Returns true, if there are AQL warnings
|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CursorResult(String database, InternalCursorDriver cursorDriver, CursorEntity<T> entity, Class<?>... clazz)
public List<T> asList()
public void close() throws ArangoException
ArangoException
public int getCount()
public int getFullCount()
public T getUniqueResult()
public CursorEntity<T> getEntity()
public boolean hasWarning()
public List<WarningEntity> getWarnings()
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.