public class CursorEntity<T> extends BaseEntity implements Iterable<T>
Constructor and Description |
---|
CursorEntity() |
Modifier and Type | Method and Description |
---|---|
T |
get(int index)
Returns the cursor element at position *index*
|
List<String> |
getBindVars() |
int |
getCount() |
long |
getCursorId() |
Map<String,Object> |
getExtra() |
int |
getFullCount() |
List<T> |
getResults()
Returns the DocumentEntity objects of this CursorDocumentEntity
|
T |
getUniqueResult()
Return a single instance that matches the query, or null if the query
returns no results.
|
List<WarningEntity> |
getWarnings() |
boolean |
hasMore() |
boolean |
hasWarnings() |
boolean |
isCached() |
boolean |
isHasMore() |
Iterator<T> |
iterator() |
void |
setBindVars(List<String> bindVars) |
void |
setCached(boolean cached) |
void |
setCount(int count) |
void |
setCursorId(long cursorId) |
void |
setExtra(Map<String,Object> extra) |
void |
setFullCount(int count) |
void |
setHasMore(boolean hasMore) |
void |
setResults(List<T> results) |
void |
setWarnings(List<WarningEntity> warnings) |
int |
size()
The size of the cursor results.
|
getCode, getErrorMessage, getErrorNumber, getEtag, getRequestId, getStatusCode, isBatchResponseEntity, isError, isNotModified, isUnauthorized, setCode, setError, setErrorMessage, setErrorNumber, setEtag, setRequestId, setStatusCode, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public int size()
public T get(int index)
index
- public List<T> getResults()
public T getUniqueResult()
public boolean isHasMore()
public boolean hasMore()
public int getFullCount()
public int getCount()
public long getCursorId()
public void setHasMore(boolean hasMore)
public void setFullCount(int count)
public void setCount(int count)
public void setCursorId(long cursorId)
public boolean isCached()
public void setCached(boolean cached)
public List<WarningEntity> getWarnings()
public void setWarnings(List<WarningEntity> warnings)
public boolean hasWarnings()
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.