public class BaseCursorProxy<T,S extends DocumentEntity<T>> extends Object implements Iterable<S>
Constructor and Description |
---|
BaseCursorProxy(DocumentCursorResult<T,S> baseCursor) |
Modifier and Type | Method and Description |
---|---|
List<T> |
asEntityList()
Returns the entities of DocumentEntity objects as a list
|
List<S> |
asList()
Returns the DocumentEntity objects as a list
|
void |
close()
Close cursor (removes cursor from database)
|
Iterator<T> |
entityIterator()
Returns an iterator over a entity set of elements of type T.
|
int |
getCode() |
int |
getCount()
Get total number of results (if requested)
|
Long |
getCursorId()
Returns the cursor identifier
|
Map<String,Object> |
getExtra()
A list of extra stats returned by the query
|
int |
getFullCount()
Get total number of results for queries with LIMIT clause
|
String |
getRequestId() |
int |
getStatusCode() |
S |
getUniqueResult()
Return a single instance that matches the query, or null if the query
returns no results.
|
boolean |
hasMore()
Returns true if the cursor can load more data from the database
|
boolean |
isCached()
a boolean flag indicating whether the query result was served from the
query cache or not.
|
boolean |
isNotModified()
If the resource has been modified it returns true
|
Iterator<S> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public BaseCursorProxy(DocumentCursorResult<T,S> baseCursor)
public Iterator<S> iterator()
iterator
in interface Iterable<S extends DocumentEntity<T>>
public Iterator<T> entityIterator()
public List<S> asList()
public List<T> asEntityList()
public void close() throws ArangoException
ArangoException
public int getCount()
public int getFullCount()
public S getUniqueResult()
public boolean isNotModified()
public int getCode()
public int getStatusCode()
public String getRequestId()
public boolean hasMore()
public Long getCursorId()
public boolean isCached()
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.