Class: RecursiveRelated

RecursiveRelated

A RecursiveRelated represents a relation0 to follow n times minimum and maximum used by the HasRelated predicate


new RecursiveRelated(tag, direction, minHop, maxHop)

Parameters:
Name Type Description
tag olympe.dc.Tag

The relation tag

direction olympe.dc.Direction

The relation direction

minHop number

How much time this relation must be applied minimum before being a result

maxHop number

How much time this relation must be applied maximum after which it is not a result anymore

Methods


getTransform(db, callback, index)

Return the function to follow the relation recursively following the right parameters.

Parameters:
Name Type Description
db olympe.dc.DBView
callback olympe.dc.predicates.HasRelatedTree.InstancePropagator
index string
Returns:
Type
olympe.dc.predicates.HasRelatedTree.InstancePropagator

serialize()

Serialize this object

Returns:
Type
string