Class MappedStreamDataSource<T, S>

an intermediate datasource which maps the items from one into another

Type Parameters

  • T

  • S

Hierarchy

  • MappedStreamDataSource

Implements

Constructors

Properties

inputDataSource: IStreamDataSource<T>
mapFunc: ((T: any) => S)

Type declaration

    • (T: any): S
    • Parameters

      • T: any

      Returns S

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 S

  • 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

    • cnt: number = 1

    Returns ITERATION_STATUS | S

Generated using TypeDoc