IdentityQueryPlan
classin packageklyn.data.internal
public final class IdentityQueryPlan<T> implements QueryPlanBase:
IdentityQueryPlan
All Implemented Interfaces: QueryPlanBase

Identity plan used when a repository is explicitly converted to Query<T>.

Example
plan = IdentityQueryPlan<User>()
Constructors
Modifier and Type Member Description
public IdentityQueryPlan
IdentityQueryPlan(offset as Long = 0, limit as Long = -1):
Creates an identity plan with an optional result window.
Methods
Modifier and Type Member Description
public addResult
addResult(results as Object, value as Object) as Void:
Adds one materialized identity row with static type enforcement.
public countMemory
countMemory(source as Object) as Long:
Counts the rows inside this identity window without materializing them.
public executeMemory
executeMemory(source as Object) as Object:
Copies source rows into the standard query materialization type.
public existsMemory
existsMemory(source as Object) as Boolean:
Tests whether the identity window contains at least one row.
public newResultList
newResultList() as Object:
Creates the concrete identity result list.
public openMemoryStream
openMemoryStream(source as Object) as Object:
Opens the identity result as a sequential stream.
public openProviderStream
openProviderStream(cursor as ProviderResultCursor) as Object:
Wraps a live provider identity cursor in QueryStream<T>.
public openResultStream
openResultStream(results as Object) as Object:
Opens a typed stream over an already materialized identity result.
public qirPlan
qirPlan() as QirQueryPlan:
Returns the canonical identity projection used by remote providers.
public withWindow
withWindow(windowOffset as Long, windowLimit as Long) as QueryPlanBase:
Returns a new identity plan restricted to a relative window.
Inherited Methods
methodInherited Methods from QueryPlanBase: addResult, countMemory, executeMemory, existsMemory, newResultList, openMemoryStream, openProviderStream, openResultStream, qirPlan, withWindow