14.API: SparseVector Objects

A SparseVector Object stores information about a sparse vector. This objectcan be created withoracledb.SparseVector().

SeeUsing SPARSE Vectors for more information.

Added in version 3.0.0.

14.1.SparseVector Attributes

SparseVector.indices

This read-only attribute is an array that returns the indices (zero-based)of non-zero values in the vector.

SparseVector.num_dimensions

This read-only attribute is an integer that returns the number ofdimensions of the vector.

SparseVector.values

This read-only attribute is an array that returns the non-zero valuesstored in the vector.