ListQueryStream
class in package klyn.data.internal

    public final class ListQueryStream<T> implements QueryStream<T>:

ListQueryStream
All Implemented Interfaces: QueryStream

Forward-only stream over an already materialized provider result.

Remote providers use dedicated cursor-backed implementations. This class is deliberately internal and exists for memory plans and composed fallbacks.

Example

    stream as QueryStream<Int> = ListQueryStream<Int>([1, 2])

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | current `current as T:` | Current row after a successful `next()` call.

Inherited Properties
property Inherited Properties from QueryStream: current
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ListQueryStream `ListQueryStream(rows as IList<T>):` | Creates a stream that owns the supplied materialized rows.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | cancel `cancel() as Void:` | Cancels further iteration and releases this stream.
public | close `close() as Void:` | Closes this stream.
public | next `next() as Boolean:` | Advances to the next row.

Inherited Methods
method Inherited Methods from QueryStream: cancel, close, next
method Inherited Methods from AutoClosable: close