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

    Class SparseVector

    A SparseVector class stores information about a sparse vector. This class represents an object that accepts one of the following types in its constructor: typed array, JavaScript array, object, or string.

    Hierarchy (View Summary)

    Index

    Constructors

    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.

    MAX_UINT32: number = ...

    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 any

    • Returns {
          indices: number[] | Uint32Array;
          numDimensions: number;
          values: number[] | Uint8Array | Float32Array | Float64Array;
      }

    • Parameters

      • sparseValue: any

      Returns any