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
ParameterDescription
predicateFilter operation.
selectorProjection operation.
ordersSort keys copied into this plan.
offsetNumber of rows skipped.
limitMaximum rows, or -1.
distinctEnables duplicate elimination.
descriptionDiagnostic description.
Throws
  • ValueException if offset or limit is invalid.
Example
plan = QueryPlan<Int, Int>(lambda(v): true, lambda(v): v, [], 0, 10, false, "sample")