Struct arrow_ipc::gen::SparseTensor::SparseTensor
source · pub struct SparseTensor<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
source§impl<'a> SparseTensor<'a>
impl<'a> SparseTensor<'a>
pub const VT_TYPE_TYPE: VOffsetT = 4u16
pub const VT_TYPE_: VOffsetT = 6u16
pub const VT_SHAPE: VOffsetT = 8u16
pub const VT_NON_ZERO_LENGTH: VOffsetT = 10u16
pub const VT_SPARSEINDEX_TYPE: VOffsetT = 12u16
pub const VT_SPARSEINDEX: VOffsetT = 14u16
pub const VT_DATA: VOffsetT = 16u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>, args: &'args SparseTensorArgs<'args>, ) -> WIPOffset<SparseTensor<'bldr>>
pub fn type_type(&self) -> Type
sourcepub fn type_(&self) -> Table<'a>
pub fn type_(&self) -> Table<'a>
The type of data contained in a value cell. Currently only fixed-width value types are supported, no strings or nested types.
sourcepub fn shape(&self) -> Vector<'a, ForwardsUOffset<TensorDim<'a>>>
pub fn shape(&self) -> Vector<'a, ForwardsUOffset<TensorDim<'a>>>
The dimensions of the tensor, optionally named.
sourcepub fn non_zero_length(&self) -> i64
pub fn non_zero_length(&self) -> i64
The number of non-zero values in a sparse tensor.
pub fn sparseIndex_type(&self) -> SparseTensorIndex
sourcepub fn sparseIndex(&self) -> Table<'a>
pub fn sparseIndex(&self) -> Table<'a>
Sparse tensor index
pub fn type_as_null(&self) -> Option<Null<'a>>
pub fn type_as_int(&self) -> Option<Int<'a>>
pub fn type_as_floating_point(&self) -> Option<FloatingPoint<'a>>
pub fn type_as_binary(&self) -> Option<Binary<'a>>
pub fn type_as_utf_8(&self) -> Option<Utf8<'a>>
pub fn type_as_bool(&self) -> Option<Bool<'a>>
pub fn type_as_decimal(&self) -> Option<Decimal<'a>>
pub fn type_as_date(&self) -> Option<Date<'a>>
pub fn type_as_time(&self) -> Option<Time<'a>>
pub fn type_as_timestamp(&self) -> Option<Timestamp<'a>>
pub fn type_as_interval(&self) -> Option<Interval<'a>>
pub fn type_as_list(&self) -> Option<List<'a>>
pub fn type_as_struct_(&self) -> Option<Struct_<'a>>
pub fn type_as_union(&self) -> Option<Union<'a>>
pub fn type_as_fixed_size_binary(&self) -> Option<FixedSizeBinary<'a>>
pub fn type_as_fixed_size_list(&self) -> Option<FixedSizeList<'a>>
pub fn type_as_map(&self) -> Option<Map<'a>>
pub fn type_as_duration(&self) -> Option<Duration<'a>>
pub fn type_as_large_binary(&self) -> Option<LargeBinary<'a>>
pub fn type_as_large_utf_8(&self) -> Option<LargeUtf8<'a>>
pub fn type_as_large_list(&self) -> Option<LargeList<'a>>
pub fn type_as_run_end_encoded(&self) -> Option<RunEndEncoded<'a>>
pub fn sparseIndex_as_sparse_tensor_index_coo( &self, ) -> Option<SparseTensorIndexCOO<'a>>
pub fn sparseIndex_as_sparse_matrix_index_csx( &self, ) -> Option<SparseMatrixIndexCSX<'a>>
pub fn sparseIndex_as_sparse_tensor_index_csf( &self, ) -> Option<SparseTensorIndexCSF<'a>>
Trait Implementations§
source§impl<'a> Clone for SparseTensor<'a>
impl<'a> Clone for SparseTensor<'a>
source§fn clone(&self) -> SparseTensor<'a>
fn clone(&self) -> SparseTensor<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SparseTensor<'_>
impl Debug for SparseTensor<'_>
source§impl<'a> Follow<'a> for SparseTensor<'a>
impl<'a> Follow<'a> for SparseTensor<'a>
source§impl<'a> PartialEq for SparseTensor<'a>
impl<'a> PartialEq for SparseTensor<'a>
source§fn eq(&self, other: &SparseTensor<'a>) -> bool
fn eq(&self, other: &SparseTensor<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Verifiable for SparseTensor<'_>
impl Verifiable for SparseTensor<'_>
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for SparseTensor<'a>
impl<'a> StructuralPartialEq for SparseTensor<'a>
Auto Trait Implementations§
impl<'a> Freeze for SparseTensor<'a>
impl<'a> RefUnwindSafe for SparseTensor<'a>
impl<'a> Send for SparseTensor<'a>
impl<'a> Sync for SparseTensor<'a>
impl<'a> Unpin for SparseTensor<'a>
impl<'a> UnwindSafe for SparseTensor<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)