pond-ts API Reference (core)
    Preparing search index...

    Class ChunkedFloat64Column

    Numeric chunked column. Same shape contract as Float64Column (kind 'number', read / scan / sliceByRange / sliceByIndices) but backed by a list of plain Float64Column chunks rather than a single flat Float64Array. See the module header for the design rationale (aggregate validity, sliceByRange staying chunked across multi-chunk ranges, sliceByIndices materializing).

    chunks is defensively frozen + sliced at construction so subsequent caller mutation of the source array can't corrupt the column.

    Index

    Constructors

    Properties

    allFinite: boolean

    true iff every chunk is itself allFinite — the merged column is all-finite IFF each input is (an AND). Defaults to false whenever any chunk's flag is false (or absent), which is the safe direction: a chunk that didn't prove finiteness keeps the whole column on the guarded reducer path. Mirrors Float64Column.allFinite's safety contract — see it for why a wrong true is unsafe.

    chunkOffsets: Int32Array
    chunks: readonly Float64Column[]
    kind: "number" = ...
    length: number
    storage: "chunked" = ...
    validity?: ValidityBitmap

    Methods

    • Reads cell i by binary-searching chunkOffsets to find the containing chunk, then dereferencing its underlying Float64Array directly. Aggregate validity short-circuits to undefined before the chunk lookup — see the module header for why we maintain that bitmap eagerly.

      Parameters

      • i: number

      Returns number | undefined

    • Linear scan. Delegates to each chunk's own scan and rebases the local row index to a global one — every chunk's per-chunk validity and the shared skipInvalid contract are honored naturally by the inner scan.

      Parameters

      • fn: (value: number, i: number) => void
      • Optionaloptions: ScanOptions

      Returns void

    • Gather all chunks into a fresh Float64Array(this.length). Mirrors Float64Column.toFloat64Array's shape — always returns a Float64Array whose length equals this.length. For chunked columns the result is always a fresh allocation (chunked storage has no single contiguous buffer to alias).

      Returns Float64Array