CollectOptions extends QueryOptions
Table of Contents
Constants
- CACHE_ENABLED : string = 'cacheEnabled'
- COLLECTIONS : string = 'collections'
- CONDITION_OPTIMIZATION : string = 'conditionOptimization'
- COUNT_APPROXIMATE : string = 'countApproximate'
- DEDUPLICATE : string = 'deduplicate'
- DEFAULT_WEIGHT : string = 'defaultWeight'
- DISABLE_INDEX : string = 'disableIndex'
- EDGE_COLLECTIONS : string = 'edgeCollections'
- ESTIMATES : string = 'estimates'
- EXCLUSIVE : string = 'exclusive'
- EXPIRE_AFTER : string = 'expireAfter'
- FIELD_VALUE_TYPES : string = 'fieldValueTypes'
- FIELDS : string = 'fields'
- FORCE_INDEX_HINT : string = 'forceIndexHint'
- GEO_JSON : string = 'geoJson'
- IGNORE_ERRORS : string = 'ignoreErrors'
- IGNORE_REVS : string = 'ignoreRevs'
- IN_BACKGROUND : string = 'inBackground'
- INDEX_HINT : string = 'indexHint'
- KEEP_NULL : string = 'keepNull'
- LEGACY_POLYGONS : string = 'legacyPolygons'
- LOOKAHEAD : string = 'lookahead'
- MAX_PROJECTIONS : string = 'maxProjections'
- MERGE_OBJECTS : string = 'mergeObjects'
- METHOD : string = 'method'
- NAME : string = 'name'
- ORDER : string = 'order'
- OVERWRITE_MODE : string = 'overwriteMode'
- PARALLELISM : string = 'parallelism'
- PARAMS : string = 'params'
- PREFIX_FIELDS : string = 'prefixFields'
- READ_OWN_WRITES : string = 'readOwnWrites'
- REFILL_INDEX_CACHES : string = 'refillIndexCaches'
- SPARSE : string = 'sparse'
- STORED_VALUES : string = 'storedValues'
- TYPE : string = 'type'
- UNIQUE : string = 'unique'
- UNIQUE_EDGES : string = 'uniqueEdges'
- UNIQUE_VERTICES : string = 'uniqueVertices'
- USE_CACHE : string = 'useCache'
- VERSION_ATTRIBUTE : string = 'versionAttribute'
- VERTEX_COLLECTIONS : string = 'vertexCollections'
- WAIT_FOR_SYNC : string = 'waitForSync'
- WEIGHT_ATTRIBUTE : string = 'weightAttribute'
Properties
- $disableIndex : bool
- You can disable the use-index-for-collect optimization for individual COLLECT operations by setting this option to true.
- $method : string|null
- There are two variants of COLLECT that the optimizer can choose from: the sorted and the hash variant.
Methods
- __construct() : mixed
- Creates a new QueryOptions instance.
- jsonSerialize() : array<string|int, mixed>
- Invoked to serialize the object with the json serializer.
Constants
CACHE_ENABLED
public
string
CACHE_ENABLED
= 'cacheEnabled'
COLLECTIONS
public
string
COLLECTIONS
= 'collections'
CONDITION_OPTIMIZATION
public
string
CONDITION_OPTIMIZATION
= 'conditionOptimization'
COUNT_APPROXIMATE
public
string
COUNT_APPROXIMATE
= 'countApproximate'
DEDUPLICATE
public
string
DEDUPLICATE
= 'deduplicate'
DEFAULT_WEIGHT
public
string
DEFAULT_WEIGHT
= 'defaultWeight'
DISABLE_INDEX
public
string
DISABLE_INDEX
= 'disableIndex'
EDGE_COLLECTIONS
public
string
EDGE_COLLECTIONS
= 'edgeCollections'
ESTIMATES
public
string
ESTIMATES
= 'estimates'
EXCLUSIVE
public
string
EXCLUSIVE
= 'exclusive'
EXPIRE_AFTER
public
string
EXPIRE_AFTER
= 'expireAfter'
FIELD_VALUE_TYPES
public
string
FIELD_VALUE_TYPES
= 'fieldValueTypes'
FIELDS
public
string
FIELDS
= 'fields'
FORCE_INDEX_HINT
public
string
FORCE_INDEX_HINT
= 'forceIndexHint'
GEO_JSON
public
string
GEO_JSON
= 'geoJson'
IGNORE_ERRORS
public
string
IGNORE_ERRORS
= 'ignoreErrors'
IGNORE_REVS
public
string
IGNORE_REVS
= 'ignoreRevs'
IN_BACKGROUND
public
string
IN_BACKGROUND
= 'inBackground'
INDEX_HINT
public
string
INDEX_HINT
= 'indexHint'
KEEP_NULL
public
string
KEEP_NULL
= 'keepNull'
LEGACY_POLYGONS
public
string
LEGACY_POLYGONS
= 'legacyPolygons'
LOOKAHEAD
public
string
LOOKAHEAD
= 'lookahead'
MAX_PROJECTIONS
public
string
MAX_PROJECTIONS
= 'maxProjections'
MERGE_OBJECTS
public
string
MERGE_OBJECTS
= 'mergeObjects'
METHOD
public
string
METHOD
= 'method'
NAME
public
string
NAME
= 'name'
ORDER
public
string
ORDER
= 'order'
OVERWRITE_MODE
public
string
OVERWRITE_MODE
= 'overwriteMode'
PARALLELISM
public
string
PARALLELISM
= 'parallelism'
PARAMS
public
string
PARAMS
= 'params'
PREFIX_FIELDS
public
string
PREFIX_FIELDS
= 'prefixFields'
READ_OWN_WRITES
public
string
READ_OWN_WRITES
= 'readOwnWrites'
REFILL_INDEX_CACHES
public
string
REFILL_INDEX_CACHES
= 'refillIndexCaches'
SPARSE
public
string
SPARSE
= 'sparse'
STORED_VALUES
public
string
STORED_VALUES
= 'storedValues'
TYPE
public
string
TYPE
= 'type'
UNIQUE
public
string
UNIQUE
= 'unique'
UNIQUE_EDGES
public
string
UNIQUE_EDGES
= 'uniqueEdges'
UNIQUE_VERTICES
public
string
UNIQUE_VERTICES
= 'uniqueVertices'
USE_CACHE
public
string
USE_CACHE
= 'useCache'
VERSION_ATTRIBUTE
public
string
VERSION_ATTRIBUTE
= 'versionAttribute'
VERTEX_COLLECTIONS
public
string
VERTEX_COLLECTIONS
= 'vertexCollections'
WAIT_FOR_SYNC
public
string
WAIT_FOR_SYNC
= 'waitForSync'
WEIGHT_ATTRIBUTE
public
string
WEIGHT_ATTRIBUTE
= 'weightAttribute'
Properties
$disableIndex
You can disable the use-index-for-collect optimization for individual COLLECT operations by setting this option to true.
public
bool
$disableIndex
COLLECT ... OPTIONS { disableIndex: true }
The optimization improves the scanning for distinct values using COLLECT if a usable persistent index is present.
It is automatically disabled if the selectivity is high, i.e. there are many different values,
or if there is filtering or an INTO or AGGREGATE clause.
Tags
$method
There are two variants of COLLECT that the optimizer can choose from: the sorted and the hash variant.
public
string|null
$method
The method option can be used in a COLLECT statement to inform the optimizer about the preferred method, "sorted" or "hash".
Methods
__construct()
Creates a new QueryOptions instance.
public
__construct([array<string|int, mixed>|object|null $init = null ]) : mixed
Parameters
- $init : array<string|int, mixed>|object|null = null
-
A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
jsonSerialize()
Invoked to serialize the object with the json serializer.
public
jsonSerialize() : array<string|int, mixed>