GetNonZeroIndexArray(int)
This method returns the non-zero-dimension indices long[] of the specified sparse VECTOR column.
Declaration
// C#
public long[] GetNonZeroIndexArray(int index);Parameters
index
A zero-based column index.
Return Value
The non-zero-dimension indices long[] of the column.
Exceptions
InvalidOperationException - The connection is closed, the reader is closed, Read() has not been called or all rows have been read.
IndexOutOfRangeException - The column index is invalid.
InvalidCastException - The accessor method is invalid for this column type, the VECTOR column is a dense vector type column, or the column value is NULL.
Remarks
IsDBNull should be called to check for NULL values before calling this method.
Only call this method on a sparse VECTOR column where SchemaTable["VectorType"] is OracleVectorType.Sparse.