columna API reference - v0.5.0
    Preparing search index...

    Class Session

    Index
    persistCache: PersistCache
    runtime: Runtime
    • get isClosed(): boolean

      Returns boolean

    • Bind a frame or plan to this session's runtime (its engine, memory policy and cache).

      Type Parameters

      Parameters

      Returns DataFrame<S>

    • Bind a frame or plan to this session's runtime (its engine, memory policy and cache).

      Type Parameters

      Parameters

      Returns LazyFrame<S>

    • Drop everything this session cached. Frames already materialized stay usable.

      Returns void

    • Type Parameters

      • C extends Record<
            string,
            | readonly (string | number | boolean | Date | null)[]
            | Float64Array<ArrayBufferLike>
            | Float32Array<ArrayBufferLike>
            | Int32Array<ArrayBufferLike>
            | Uint32Array<ArrayBufferLike>
            | Uint8Array<ArrayBufferLike>
            | { codes: Uint32Array; dictionary: string[] },
        >

      Parameters

      • cols: C
      • Optionaloptions: { copy?: boolean }

      Returns DataFrame<
          {
              [K in string
              | number
              | symbol]: { [K in string | number | symbol]: ColumnValue<C[K]> }[K]
          },
      >

    • Per-call IO options with this session's policy added as a floor.

      Type Parameters

      Parameters

      • Optionaloptions: O

      Returns O

    • Type Parameters

      Parameters

      • source: IoSource
      • Optionaloptions: IoPolicy & {
            content?: boolean;
            encoding?: string;
            floors?: IoPolicy[];
            mode?: IoSourceMode;
        } & ArrowIpcReadOptions
        • Optionalcontent?: boolean

          Treat a string source as raw content, never as a path (alias of mode: 'text').

        • Optionalencoding?: string

          Text encoding when reading bytes/files (default utf-8).

        • Optionalfloors?: IoPolicy[]

          Additional policy floors — a Session's policy, for instance. Every floor is enforced like the process-wide one (each must pass; byte caps and timeouts take the minimum), and per-call fields cannot widen any of them.

        • Optionalmode?: IoSourceMode

          Interpret a bare string as content / path / URL instead of guessing (default 'auto').

      Returns Promise<DataFrame<S>>