public class AqlQueryOptions extends Object implements OptionsInterface
Constructor and Description |
---|
AqlQueryOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getBatchSize()
maximum number of result documents to be transferred from the server to
the client in one roundtrip (optional).
|
Boolean |
getCache()
flag to determine whether the AQL query cache shall be used.
|
Boolean |
getCount()
boolean flag that indicates whether the number of documents in the result
set should be returned in the "count" attribute of the result (optional).
|
Boolean |
getFullCount()
if set to true and the query contains a LIMIT clause, then the result
will contain an extra attribute extra with a sub-attribute fullCount.
|
Boolean |
getProfile()
if set to true, then the additional query profiling information will be
returned in the extra.stats return attribute if the query result is not
served from the query cache.
|
Integer |
getTtl()
an optional time-to-live for the cursor (in seconds).
|
AqlQueryOptions |
setBatchSize(Integer batchSize)
maximum number of result documents to be transferred from the server to
the client in one roundtrip (optional).
|
AqlQueryOptions |
setCache(Boolean cache)
flag to determine whether the AQL query cache shall be used.
|
AqlQueryOptions |
setCount(Boolean count)
boolean flag that indicates whether the number of documents in the result
set should be returned in the "count" attribute of the result (optional).
|
AqlQueryOptions |
setFullCount(Boolean fullCount)
if set to true and the query contains a LIMIT clause, then the result
will contain an extra attribute extra with a sub-attribute fullCount.
|
AqlQueryOptions |
setProfile(Boolean profile)
if set to true, then the additional query profiling information will be
returned in the extra.stats return attribute if the query result is not
served from the query cache.
|
AqlQueryOptions |
setTtl(Integer ttl)
an optional time-to-live for the cursor (in seconds).
|
Map<String,Object> |
toMap() |
public Boolean getCount()
public AqlQueryOptions setCount(Boolean count)
count
- boolean flagpublic Integer getBatchSize()
public AqlQueryOptions setBatchSize(Integer batchSize)
batchSize
- maximum number of result documentspublic Boolean getProfile()
public AqlQueryOptions setProfile(Boolean profile)
profile
- boolean flagpublic Boolean getFullCount()
public AqlQueryOptions setFullCount(Boolean fullCount)
fullCount
- boolean flagpublic Integer getTtl()
public AqlQueryOptions setTtl(Integer ttl)
ttl
- optional time-to-livepublic Boolean getCache()
public AqlQueryOptions setCache(Boolean cache)
cache
- boolean flagpublic Map<String,Object> toMap()
toMap
in interface OptionsInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.