telepath / com.github.giedomak.telepath.physicaloperators / IndexLookup

IndexLookup

class IndexLookup : PhysicalOperator (source)

Physical operator to lookup paths in the kPathIndex.

Let's say we've got this physical plan:

    INDEX_LOOKUP
      /  |  \
     a   b   c

Then a - b - c forms the labeled path for which we are searching for paths in de index.

Constructors

<init>

IndexLookup(physicalPlan: PhysicalPlan)

Physical operator to lookup paths in the kPathIndex.

Properties

physicalPlan

val physicalPlan: PhysicalPlan

The physical plan which holds the leafs which make up the pathId.

Inherited Properties

cardinality

open val cardinality: Long

Delegate cardinality to the physical plan.

firstChild

open val firstChild: PhysicalOperator

The first set of data to operate on.

lastChild

open val lastChild: PhysicalOperator

The last set of data to operate on.

Functions

cost

fun cost(): Long

Cost of an index lookup is very cheap.

evaluate

fun evaluate(): PathStream

Evaluate the index lookup and stream the results.