Package com.arangodb.entity
Class CursorEntity<T>
java.lang.Object
com.arangodb.entity.CursorEntity<T>
- Author:
- Mark Vollmary
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCount()
getExtra()
getId()
void
void
setPotentialDirtyRead
(Boolean potentialDirtyRead)
-
Constructor Details
-
CursorEntity
public CursorEntity()
-
-
Method Details
-
getId
-
setId
-
getCount
- Returns:
- the total number of result documents available (only available if the query was executed with the count attribute set)
-
getExtra
- Returns:
- an optional object with extra information about the query result contained in its stats sub-attribute. For data-modification queries, the extra.stats sub-attribute 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)
-
getCached
- Returns:
- a boolean flag indicating whether the query result was served from the query cache or not. If the query result is served from the query cache, the extra return attribute will not contain any stats sub-attribute and no profile sub-attribute.
-
getHasMore
- Returns:
- A boolean indicator whether there are more results available for the cursor on the server
-
getResult
- Returns:
- a list of result documents (might be empty if query has no results)
-
isPotentialDirtyRead
- Returns:
- true if the result is a potential dirty read
- Since:
- ArangoDB 3.10
-
setPotentialDirtyRead
-
getNextBatchId
- Returns:
- The ID of the batch after the current one. The first batch has an ID of 1 and the value is incremented by 1 with every batch. Only set if the allowRetry query option is enabled.
- Since:
- ArangoDB 3.11
-