klyn.data.internal.QueryCompiler.create
method
public static create<T, R>(
source as Queryable<T>,
predicate as QueryPredicate<T>,
selector as QuerySelector<T, R>,
orders as IList<QueryOrderBase<T>>,
predicateQir as QirExpression,
projectionQir as QirExpression,
qirOrders as IList<QirOrder>,
sourceType as String,
resultType as String,
alias as String,
offset as Long,
limit as Long,
distinct as Boolean,
description as String
) as Query<R>:
Description

Creates an immutable lazy query from compiler-generated operations.

Parameters
ParameterDescription
sourceTyped provider source.
predicateCanonical filter.
selectorCanonical projection.
ordersCanonical sort keys.
sourceTypeExact source type name emitted by the compiler.
resultTypeExact projection type name emitted by the compiler.
offsetNumber of rows skipped.
limitMaximum rows, or -1.
distinctEnables duplicate elimination.
descriptionDiagnostic plan description.
Returns

Lazy typed Query.

Example
query = QueryCompiler.create<Int, Int>(
source, lambda(v): true, lambda(v): v, [],
predicateQir, projectionQir, [], "Int", "Int", "v",
0, -1, false, "all"
)