ProviderQueryStream
class in package klyn.data.internal

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

ProviderQueryStream
All Implemented Interfaces: QueryStream

Statically typed stream facade over one provider cursor.

Example

    stream as QueryStream<User> = ProviderQueryStream<User>(cursor)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | current `current as T:` | Returns the current statically typed result row.

Inherited Properties
property Inherited Properties from QueryStream: current
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ProviderQueryStream `ProviderQueryStream(cursor as ProviderResultCursor):` | Creates a typed facade that owns the provider cursor.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | cancel `cancel() as Void:` | Cancels the provider operation and closes this facade.
public | close `close() as Void:` | Closes the provider cursor idempotently.
public | next `next() as Boolean:` | Advances the provider cursor and performs one checked result cast.

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