Struct ColumnCacheWriter

Source
pub struct ColumnCacheWriter { /* private fields */ }
Expand description

The cache where all data is stored in a column format. Each column type has its own array of data. Number types maintain their own index for sorting purposes.

Implementations§

Source§

impl ColumnCacheWriter

Source

pub fn add_string(&mut self, value: String) -> usize

add string to cache

Source

pub fn add_u64(&mut self, value: u64) -> RefCell<OColumnBaseChunk>

add u64 to cache

Source

pub fn add_i64(&mut self, value: i64) -> RefCell<OColumnBaseChunk>

add i64 to cache

Source

pub fn add_f32(&mut self, value: f32) -> RefCell<OColumnBaseChunk>

add f32 to cache

Source

pub fn add_f64(&mut self, value: f64) -> RefCell<OColumnBaseChunk>

add f64 to cache

Source

pub fn add_points(&mut self, value: Vec<Point>) -> usize

add points to cache

Source

pub fn add_points_3d(&mut self, value: Vec<Point3D>) -> usize

add points_3d to cache

Source

pub fn add_indices(&mut self, value: Vec<u32>) -> usize

add indices to cache

Source

pub fn add_shapes(&mut self, value: Vec<ColumnValue>) -> usize

add shapes to cache

Source

pub fn add_bbox(&mut self, value: BBOX) -> usize

add bbox to cache

Trait Implementations§

Source§

impl Debug for ColumnCacheWriter

Source§

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

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

impl Default for ColumnCacheWriter

Source§

fn default() -> ColumnCacheWriter

Returns the “default value” for a type. Read more
Source§

impl ProtoWrite for ColumnCacheWriter

Source§

fn write(&self, pbf: &mut Protobuf)

The write method is used to write a field to a protobuf message. The pbf parameter is used to write the data in the appropriate format. 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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<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.