#[repr(C)]pub struct dpiVectorInfo {
pub format: u8,
pub numDimensions: u32,
pub dimensionSize: u8,
pub dimensions: dpiVectorDimensionBuffer,
pub numSparseValues: u32,
pub sparseIndices: *mut u32,
}Expand description
This structure is used for providing or receiving information about a vector.
Fields§
§format: u8Specifies the storage format for the vector. It should be one of the values
from the enumeration dpiVectorFormat.
numDimensions: u32Specifies the number of dimensions the vector contains.
dimensionSize: u8Specifies the size (in bytes) of each dimension of the vector. This value does not need to be specified on input but is populated on output as a convenience.
dimensions: dpiVectorDimensionBufferSpecifies the buffer for the dimensions. On input the buffer must remain
valid for the duration of the call into ODPI-C. On output the buffer will
remain valid as long as the vector object remains valid and the contents of
the vector are not changed. See the
dpiVectorDimensionBuffer union for more
information.
For dense vectors, the length of this array is defined by the
[dpiVectorInfo.numDimensions] member. For sparse vectors, the
length of this array is defined by the
[dpiVectorInfo.numSparseValues] member.
numSparseValues: u32Specifies the number of values that a sparse vector contains that are non-zero. If this value is 0, the vector is considered a dense vector.
sparseIndices: *mut u32Specifies an array of sparse vector indices. Each element in this array is
the index of a non-zero value in the vector. The length of this array is
defined by the [dpiVectorInfo.numSparseValues] member. If the
vector is not a sparse vector, this value will be NULL.
Trait Implementations§
Source§impl Clone for dpiVectorInfo
impl Clone for dpiVectorInfo
Source§fn clone(&self) -> dpiVectorInfo
fn clone(&self) -> dpiVectorInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more