QueryPlanBase
interfacein packageklyn.data.internal
public interface QueryPlanBase:
QueryPlanBase

Type-erased boundary implemented by every concrete typed KQL plan.

The erasure exists only at the provider boundary. Concrete QueryPlan<T, R> instances retain both static types, and provider results remain specialized collections without per-row boxing.

plan as QueryPlanBase = typedPlan
Methods
Modifier and Type Member Description
public addResult
addResult(results as Object, value as Object) as Void
Appends one materialized result through the concrete result type.
public countMemory
countMemory(source as Object) as Long
Counts rows produced by this plan in memory.
public executeMemory
executeMemory(source as Object) as Object
Executes this typed plan over a compatible in-memory source.
public existsMemory
existsMemory(source as Object) as Boolean
Tests whether this plan produces at least one row in memory.
public newResultList
newResultList() as Object
Allocates the concrete specialized result list owned by this plan.
public openMemoryStream
openMemoryStream(source as Object) as Object
Opens a forward-only stream over this plan evaluated in memory.
public openProviderStream
openProviderStream(cursor as ProviderResultCursor) as Object
Wraps a live provider cursor in the concrete QueryStream<R> type.
public openResultStream
openResultStream(results as Object) as Object
Wraps a concrete provider result list in its matching typed stream.
public qirPlan
qirPlan() as QirQueryPlan
Returns the immutable canonical provider plan.
public withWindow
withWindow(offset as Long, limit as Long) as QueryPlanBase
Returns an immutable plan restricted to a relative result window.