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

Parameter | Description
--- | ---
`source` | Typed provider source.
`predicate` | Canonical filter.
`selector` | Canonical projection.
`orders` | Canonical sort keys.
`sourceType` | Exact source type name emitted by the compiler.
`resultType` | Exact projection type name emitted by the compiler.
`offset` | Number of rows skipped.
`limit` | Maximum rows, or -1.
`distinct` | Enables duplicate elimination.
`description` | Diagnostic 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"
    )