Struct tidb_query_datatype::codec::batch::LazyBatchColumnVec [−][src]
Stores multiple LazyBatchColumn
s. Each column has an equal length.
Fields
columns: Vec<LazyBatchColumn>
Multiple lazy batch columns. Each column is either decoded, or not decoded.
For decoded columns, they may be in different types. If the column is in
type LazyBatchColumn::Raw
, it means that it is not decoded.
Implementations
impl LazyBatchColumnVec
[src]
pub fn empty() -> Self
[src]
Creates a new empty LazyBatchColumnVec
, which does not have columns and rows.
Because column numbers won’t change, it means constructed instance will be always empty.
pub fn clone_empty(&self, capacity: usize) -> Self
[src]
Creates a new empty LazyBatchColumnVec
with the same number of columns and schema.
pub fn columns_len(&self) -> usize
[src]
Returns the number of columns.
It might be possible that there is no row but multiple columns.
pub fn rows_len(&self) -> usize
[src]
Returns the number of rows.
pub fn assert_columns_equal_length(&self)
[src]
Asserts that all columns have equal length.
pub fn maximum_encoded_size(
&self,
logical_rows: &[usize],
output_offsets: &[u32]
) -> usize
[src]
&self,
logical_rows: &[usize],
output_offsets: &[u32]
) -> usize
Returns maximum encoded size.
pub fn maximum_encoded_size_chunk(
&self,
logical_rows: &[usize],
output_offsets: &[u32]
) -> usize
[src]
&self,
logical_rows: &[usize],
output_offsets: &[u32]
) -> usize
Returns maximum encoded size in chunk format.
pub fn encode(
&self,
logical_rows: &[usize],
output_offsets: &[u32],
schema: &[FieldType],
output: &mut Vec<u8>,
ctx: &mut EvalContext
) -> Result<()>
[src]
&self,
logical_rows: &[usize],
output_offsets: &[u32],
schema: &[FieldType],
output: &mut Vec<u8>,
ctx: &mut EvalContext
) -> Result<()>
Encodes into binary format.
pub fn encode_chunk(
&mut self,
logical_rows: &[usize],
output_offsets: &[u32],
schema: &[FieldType],
output: &mut Vec<u8>,
ctx: &mut EvalContext
) -> Result<()>
[src]
&mut self,
logical_rows: &[usize],
output_offsets: &[u32],
schema: &[FieldType],
output: &mut Vec<u8>,
ctx: &mut EvalContext
) -> Result<()>
Encode into chunk format.
pub fn truncate_into_equal_length(&mut self)
[src]
Truncates columns into equal length. The new length of all columns would be the length of the shortest column before calling this function.
pub fn as_slice(&self) -> &[LazyBatchColumn]
[src]
Returns the inner columns as a slice.
pub fn as_mut_slice(&mut self) -> &mut [LazyBatchColumn]
[src]
Returns the inner columns as a mutable slice.
Trait Implementations
impl Clone for LazyBatchColumnVec
[src]
fn clone(&self) -> LazyBatchColumnVec
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LazyBatchColumnVec
[src]
impl From<Vec<LazyBatchColumn, Global>> for LazyBatchColumnVec
[src]
fn from(columns: Vec<LazyBatchColumn>) -> Self
[src]
impl From<Vec<VectorValue, Global>> for LazyBatchColumnVec
[src]
fn from(columns: Vec<VectorValue>) -> Self
[src]
impl Index<Range<usize>> for LazyBatchColumnVec
[src]
type Output = [LazyBatchColumn]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &Self::Output
[src]
impl Index<RangeFrom<usize>> for LazyBatchColumnVec
[src]
type Output = [LazyBatchColumn]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &Self::Output
[src]
impl Index<RangeTo<usize>> for LazyBatchColumnVec
[src]
type Output = [LazyBatchColumn]
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &Self::Output
[src]
impl Index<usize> for LazyBatchColumnVec
[src]
type Output = LazyBatchColumn
The returned type after indexing.
fn index(&self, index: usize) -> &LazyBatchColumn
[src]
impl IndexMut<Range<usize>> for LazyBatchColumnVec
[src]
impl IndexMut<RangeFrom<usize>> for LazyBatchColumnVec
[src]
impl IndexMut<RangeTo<usize>> for LazyBatchColumnVec
[src]
impl IndexMut<usize> for LazyBatchColumnVec
[src]
fn index_mut(&mut self, index: usize) -> &mut LazyBatchColumn
[src]
Auto Trait Implementations
impl RefUnwindSafe for LazyBatchColumnVec
impl Send for LazyBatchColumnVec
impl Sync for LazyBatchColumnVec
impl Unpin for LazyBatchColumnVec
impl UnwindSafe for LazyBatchColumnVec
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(&mut EvalContext, W) -> Result<V, Error>
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,