klyn.data.internal.QueryPlan.QueryPlan
constructor

    public QueryPlan(
    predicate as QueryPredicate<T>,
    selector as QuerySelector<T, R>,
    orders as IList<QueryOrderBase<T>>,
    offset as Long,
    limit as Long,
    distinct as Boolean,
    description as String,
    qir as QirQueryPlan = null
    ):

Description

Creates an immutable query plan.

Parameters

Parameter | Description
--- | ---
`predicate` | Filter operation.
`selector` | Projection operation.
`orders` | Sort keys copied into this plan.
`offset` | Number of rows skipped.
`limit` | Maximum rows, or -1.
`distinct` | Enables duplicate elimination.
`description` | Diagnostic description.

Throws

- ValueException if offset or limit is invalid.

Example

    plan = QueryPlan<Int, Int>(lambda(v): true, lambda(v): v, [], 0, 10, false, "sample")