Methods
-
ackUpdate()
-
Use this method to reset update status on partial result. Current result value has been transmitted and additional changes will trigger a new update
-
getComparator()
-
Return the comparator associated to that query
Returns:
comparator
-
getEntriesAt(level)
-
Result entries for the given level
Parameters:
Name Type Description levelnumber Returns:
- Type
- Map.<string, !Set.<string>>
-
getLevelsToReturn()
-
The list of levels that will be part of the query result.
Returns:
- Type
- Array.<number>
-
getMax()
-
Returns:
- Type
- number | undefined
-
getOffset()
-
Returns:
- Type
- number
-
getParentsTags(tag, level)
-
Parents tag at
level-1of nodetagatlevelParameters:
Name Type Description tagstring levelnumber Returns:
- Type
- Array.<string>
-
getTuples()
-
Returns tuples for query result
Returns:
- Type
- Array.<!Array.<string>>
-
insert(tag, level, parentTag)
-
Insert a node into the partial result. If the node being added already exists at that path depth, we only register the new parent as parent of the node.
Parameters:
Name Type Argument Description tagstring node's tag
levelnumber level of the node 'tag'
parentTagstring <nullable>
Returns:
if the node did not already exist at the path depth
- Type
- boolean
-
notifyUpdate()
-
The partial result has a change that needs to be transmitted to the
query managerThe callback provided by theonUpdate(callback) -
onUpdate(callback)
-
Sets callback to notify query manager the result has changed
Parameters:
Name Type Description callbackfunction -
remove(tag, level, parentTag)
-
Removes a node-parent relation A node is totally removed if it has no parent
Parameters:
Name Type Argument Description tagstring levelnumber the level of node 'tag'
parentTagstring <nullable>
Returns:
if a node was removed from last result level
- Type
- boolean
-
setComparator(comparator, level, order, property)
-
Parameters:
Name Type Description comparatorfunction levelnumber orderolympe.dc.api.Order propertyolympe.dc.registry.Property
Type Definitions
-
Comparator
-
Type:
- Object
Properties:
Name Type Description comparatorfunction comparatorLevelnumber orderolympe.dc.api.Order propertyolympe.dc.registry.Property
Olympe SDK