Interface StepIndexSink<TypeIDType>

A consumer of completed top-level index entries, used to divert the parse away from accumulating the object-form StepIndex — the columnar sink (columnar_index.ts) encodes each entry into typed-array columns and drops the object unless it carries children. When a sink is supplied, the parse's returned StepIndex.elements stays empty; the sink holds the index.

interface StepIndexSink<TypeIDType> {
    pushTopLevel(entry: StepIndexEntry<TypeIDType>): void;
    reset(): void;
}

Type Parameters

  • TypeIDType

Implemented by

Methods

  • Consume one completed top-level entry (its inlineEntities / multiMapping, when present, are attached and complete).

    Parameters

    Returns void

  • Rewind to empty — the streaming builder's grow-and-restart re-parses from the start and re-pushes every record.

    Returns void