Skip to main content

RowShape

Struct RowShape 

Source
pub struct RowShape(/* private fields */);

Implementations§

Source§

impl RowShape

Source

pub fn set_any(&self, row: &mut impl RowBuilder, index: usize, value: &Value)

Source

pub fn get_any(&self, row: &[u8], index: usize) -> Value

Source§

impl RowShape

Source

pub fn set_blob(&self, row: &mut impl RowBuilder, index: usize, value: &Blob)

Source

pub fn set_blob_from_slice( &self, row: &mut impl RowBuilder, index: usize, bytes: &[u8], )

Source

pub fn get_blob(&self, row: &[u8], index: usize) -> Blob

Source

pub fn get_blob_slice<'a>(&self, row: &'a [u8], index: usize) -> &'a [u8]

Source

pub fn get_blob_slice_builder<'a>( &self, row: &'a impl RowBuilder, index: usize, ) -> &'a [u8]

Source

pub fn get_blob_slice_mut<'a>( &self, row: &'a mut [u8], index: usize, ) -> &'a mut [u8]

Source

pub fn try_get_blob(&self, row: &[u8], index: usize) -> Option<Blob>

Source§

impl RowShape

Source

pub fn set_decimal( &self, row: &mut impl RowBuilder, index: usize, value: &Decimal, )

Source

pub fn get_decimal(&self, row: &[u8], index: usize) -> Decimal

Source

pub fn try_get_decimal(&self, row: &[u8], index: usize) -> Option<Decimal>

Source§

impl RowShape

Source

pub fn set_dictionary_id( &self, row: &mut impl RowBuilder, index: usize, entry: &DictionaryEntryId, )

Source

pub fn get_dictionary_id(&self, row: &[u8], index: usize) -> DictionaryEntryId

Source

pub fn try_get_dictionary_id( &self, row: &[u8], index: usize, ) -> Option<DictionaryEntryId>

Source§

impl RowShape

Source

pub fn set_int(&self, row: &mut impl RowBuilder, index: usize, value: &Int)

Source

pub fn get_int(&self, row: &[u8], index: usize) -> Int

Source

pub fn try_get_int(&self, row: &[u8], index: usize) -> Option<Int>

Source§

impl RowShape

Source

pub fn set_uint(&self, row: &mut impl RowBuilder, index: usize, value: &Uint)

Source

pub fn get_uint(&self, row: &[u8], index: usize) -> Uint

Source

pub fn try_get_uint(&self, row: &[u8], index: usize) -> Option<Uint>

Source§

impl RowShape

Source

pub fn set_utf8( &self, row: &mut impl RowBuilder, index: usize, value: impl AsRef<str>, )

Source

pub fn get_utf8<'a>(&'a self, row: &'a [u8], index: usize) -> &'a str

Source

pub fn try_get_utf8<'a>( &'a self, row: &'a [u8], index: usize, ) -> Option<&'a str>

Source§

impl RowShape

Source

pub fn set<T: RowField>( &self, row: &mut impl RowBuilder, index: usize, value: T, )

Source

pub fn get<T: RowField>(&self, row: &[u8], index: usize) -> T

Source

pub fn try_get<T: RowField>(&self, row: &[u8], index: usize) -> Option<T>

Source§

impl RowShape

Source

pub fn set_values(&self, row: &mut impl RowBuilder, values: &[Value])

Source

pub fn set_value(&self, row: &mut impl RowBuilder, index: usize, val: &Value)

Source

pub fn get_value(&self, row: &[u8], index: usize) -> Value

Source§

impl RowShape

Source

pub fn new(family: RowFamily, fields: Vec<RowShapeField>) -> Self

Source

pub fn from_parts( family: RowFamily, fingerprint: RowShapeFingerprint, fields: Vec<RowShapeField>, ) -> Self

Source

pub fn family(&self) -> RowFamily

Source

pub fn header_size(&self) -> usize

Source

pub fn fingerprint(&self) -> RowShapeFingerprint

Source

pub fn fields(&self) -> &[RowShapeField]

Source

pub fn field_count(&self) -> usize

Source

pub fn find_field(&self, name: &str) -> Option<&RowShapeField>

Source

pub fn find_field_index(&self, name: &str) -> Option<usize>

Source

pub fn get_field(&self, index: usize) -> Option<&RowShapeField>

Source

pub fn get_field_name(&self, index: usize) -> Option<&str>

Source

pub fn field_names(&self) -> impl Iterator<Item = &str>

Source

pub fn bitvec_size(&self) -> usize

Source

pub fn data_offset(&self) -> usize

Source

pub fn is_defined(&self, row: &[u8], index: usize) -> bool

Source

pub fn time(&self, row: &[u8]) -> Option<DateTime>

Source

pub fn created_at(&self, row: &[u8]) -> DateTime

Source

pub fn updated_at(&self, row: &[u8]) -> DateTime

Source

pub fn total_static_size(&self) -> usize

Source

pub fn dynamic_section_start(&self) -> usize

Source

pub fn dynamic_section_size(&self, row: &[u8]) -> usize

Source

pub fn allocate_catalog(&self) -> EncodedCatalogRowBuilder

Source

pub fn allocate_operator(&self) -> EncodedOperatorRowBuilder

Source

pub fn allocate_pod(&self) -> EncodedPodRowBuilder

Source

pub fn allocate_table(&self) -> EncodedTableRowBuilder

Source

pub fn allocate_series(&self) -> EncodedSeriesRowBuilder

Source

pub fn allocate_ringbuffer(&self) -> EncodedRingBufferRowBuilder

Source

pub fn allocate_queue(&self) -> EncodedQueueRowBuilder

Source

pub fn set_none(&self, row: &mut impl RowBuilder, index: usize)

Source

pub fn testing(family: RowFamily, types: &[ValueType]) -> Self

Trait Implementations§

Source§

impl Clone for RowShape

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RowShape

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for RowShape

Source§

type Target = Inner

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Eq for RowShape

Source§

impl PartialEq for RowShape

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more