MLE PL/SQL Types(mle-js-plsqltypes)
    Preparing search index...

    Class ISparseVectorAbstract

    Interface for representing a SparseVector Class stores information about a sparse vector.

    Oracle 23.26.0

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a SparseVector.

      Parameters

      • input:
            | string
            | number[]
            | Uint8Array
            | Float32Array
            | Float64Array
            | ISparseVectorConstructorArgs

      Returns ISparseVector

    Properties

    indices: number[] | Uint32Array

    This property is a JavaScript array or a 32-bit unsigned integer (Uint32Array) TypedArray that specifies the indices (zero-based) of non-zero values in the vector.

    numDimensions: number

    This property is an integer that specifies the number of dimensions of the vector.

    values: number[] | Uint8Array | Float32Array | Float64Array

    This property is a JavaScript array or TypedArray that specifies the non-zero values stored in the vector.

    Methods

    • Converts a sparse vector to a dense vector and returns a TypedArray of 8-bit signed integers, 32-bit floating-point numbers, or 64-bit floating-point numbers depending on the storage format of the sparse vector column's non-zero values in Oracle Database.

      This method is best used with sparse vectors read from Oracle Database.

      Returns Uint8Array | Float32Array | Float64Array