Interface IStreamDataSource<T>

Every data source wich feeds data into the lazy stream or stream generally must implement this interface

It is basically an iteratable to the core

Type Parameters

  • T

Hierarchy

  • IStreamDataSource

Implemented by

Methods

  • returns the current element, returns the same element as the previous next call if there is no next before current called then we will call next as initial element

    Returns T | ITERATION_STATUS

  • Returns

    true if additional data is present false if not

    Returns boolean

  • returns the next element in the stream difference to next is, that the internal data position is not changed, so next still will deliver the next item from the current data position. Look ahead is mostly needed internally by possible endless data constructs which have no fixed data boundary, or index positions. (aka infinite sets, or flatmapped constructs)

    Parameters

    • Optional cnt: number

    Returns T | ITERATION_STATUS

  • returns the next element in the stream

    Returns T | ITERATION_STATUS

Generated using TypeDoc