Apache Arrow - v21.1.0
    Preparing search index...

    Class Schema<T>

    Type Parameters

    • T extends TypeMap = any
    Index

    Constructors

    • Type Parameters

      • T extends TypeMap = any

      Parameters

      • fields: Field<T[keyof T]>[] = []
      • Optionalmetadata: Map<string, string> | null
      • Optionaldictionaries: Map<number, DataType<Type, any>> | null
      • metadataVersion: MetadataVersion = MetadataVersion.V5

      Returns Schema<T>

    Properties

    "[kSchemaSymbol]": true
    dictionaries: Map<number, DataType<Type, any>>
    fields: Field<T[keyof T]>[]
    metadata: Map<string, string>
    metadataVersion: MetadataVersion

    Accessors

    • get "[toStringTag]"(): string

      Returns string

    Methods

    • Construct a new Schema containing only specified fields.

      Type Parameters

      • K extends string | number | symbol = any

      Parameters

      • fieldNames: K[]

        Names of fields to keep.

      Returns Schema<{ [P in string | number | symbol]: T[P] }>

      A new Schema of fields matching the specified names.

    • Construct a new Schema containing only fields at the specified indices.

      Type Parameters

      • K extends TypeMap = any

      Parameters

      • fieldIndices: number[]

        Indices of fields to keep.

      Returns Schema<K>

      A new Schema of fields at the specified indices.