pub struct LiquidFloatArray<T: LiquidFloatType> { /* private fields */ }Expand description
An array that stores floats in ALP
Implementations§
Source§impl<T> LiquidFloatArray<T>where
T: LiquidFloatType,
impl<T> LiquidFloatArray<T>where
T: LiquidFloatType,
Sourcepub fn get_array_memory_size(&self) -> usize
pub fn get_array_memory_size(&self) -> usize
Get the memory size of the Liquid primitive array.
Sourcepub fn from_arrow_array(arrow_array: PrimitiveArray<T>) -> LiquidFloatArray<T>
pub fn from_arrow_array(arrow_array: PrimitiveArray<T>) -> LiquidFloatArray<T>
Create a Liquid primitive array from an Arrow float array.
Sourcepub fn squeeze_policy(&self) -> FloatSqueezePolicy
pub fn squeeze_policy(&self) -> FloatSqueezePolicy
Get current squeeze policy for this array
Source§impl<T> LiquidFloatArray<T>where
T: LiquidFloatType,
impl<T> LiquidFloatArray<T>where
T: LiquidFloatType,
Sourcepub fn from_bytes(bytes: Bytes) -> Self
pub fn from_bytes(bytes: Bytes) -> Self
Deserialize a LiquidFloatArray from bytes, using zero-copy where possible.
Trait Implementations§
Source§impl<T: Clone + LiquidFloatType> Clone for LiquidFloatArray<T>
impl<T: Clone + LiquidFloatType> Clone for LiquidFloatArray<T>
Source§fn clone(&self) -> LiquidFloatArray<T>
fn clone(&self) -> LiquidFloatArray<T>
Returns a duplicate 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<T: Debug + LiquidFloatType> Debug for LiquidFloatArray<T>
impl<T: Debug + LiquidFloatType> Debug for LiquidFloatArray<T>
Source§impl<T> LiquidArray for LiquidFloatArray<T>where
T: LiquidFloatType,
impl<T> LiquidArray for LiquidFloatArray<T>where
T: LiquidFloatType,
Source§fn get_array_memory_size(&self) -> usize
fn get_array_memory_size(&self) -> usize
Get the memory size of the Liquid array.
Source§fn to_arrow_array(&self) -> ArrayRef
fn to_arrow_array(&self) -> ArrayRef
Convert the Liquid array to an Arrow array.
Source§fn original_arrow_data_type(&self) -> DataType
fn original_arrow_data_type(&self) -> DataType
Get the original arrow data type of the Liquid array.
Source§fn data_type(&self) -> LiquidDataType
fn data_type(&self) -> LiquidDataType
Get the logical data type of the Liquid array.
Source§fn to_best_arrow_array(&self) -> ArrayRef
fn to_best_arrow_array(&self) -> ArrayRef
Convert the Liquid array to an Arrow array.
Except that it will pick the best encoding for the arrow array.
Meaning that it may not obey the data type of the original arrow array.
Source§fn squeeze(
&self,
io: Arc<dyn SqueezeIoHandler>,
_expression_hint: Option<&CacheExpression>,
) -> Option<(LiquidSqueezedArrayRef, Bytes)>
fn squeeze( &self, io: Arc<dyn SqueezeIoHandler>, _expression_hint: Option<&CacheExpression>, ) -> Option<(LiquidSqueezedArrayRef, Bytes)>
Squeeze the Liquid array to a
LiquidHybridArrayRef and a bytes::Bytes.
Return None if the Liquid array cannot be squeezed. Read moreSource§fn filter(&self, selection: &BooleanBuffer) -> ArrayRef
fn filter(&self, selection: &BooleanBuffer) -> ArrayRef
Filter the Liquid array with a boolean array and return an arrow array.
Source§fn try_eval_predicate(
&self,
_predicate: &Arc<dyn PhysicalExpr>,
_filter: &BooleanBuffer,
) -> Option<BooleanArray>
fn try_eval_predicate( &self, _predicate: &Arc<dyn PhysicalExpr>, _filter: &BooleanBuffer, ) -> Option<BooleanArray>
Try to evaluate a predicate on the Liquid array with a filter.
Returns
None if the predicate is not supported. Read moreAuto Trait Implementations§
impl<T> Freeze for LiquidFloatArray<T>where
<T as ArrowPrimitiveType>::Native: Sized,
<<T as LiquidFloatType>::SignedIntType as ArrowPrimitiveType>::Native: Freeze,
impl<T> RefUnwindSafe for LiquidFloatArray<T>where
<T as ArrowPrimitiveType>::Native: Sized + RefUnwindSafe,
<<T as LiquidFloatType>::SignedIntType as ArrowPrimitiveType>::Native: RefUnwindSafe,
<<T as LiquidFloatType>::UnsignedIntType as ArrowPrimitiveType>::Native: RefUnwindSafe,
impl<T> Send for LiquidFloatArray<T>
impl<T> Sync for LiquidFloatArray<T>
impl<T> Unpin for LiquidFloatArray<T>where
<T as ArrowPrimitiveType>::Native: Sized + Unpin,
<<T as LiquidFloatType>::SignedIntType as ArrowPrimitiveType>::Native: Unpin,
<<T as LiquidFloatType>::UnsignedIntType as ArrowPrimitiveType>::Native: Unpin,
impl<T> UnsafeUnpin for LiquidFloatArray<T>where
<T as ArrowPrimitiveType>::Native: Sized,
<<T as LiquidFloatType>::SignedIntType as ArrowPrimitiveType>::Native: UnsafeUnpin,
impl<T> UnwindSafe for LiquidFloatArray<T>where
<T as ArrowPrimitiveType>::Native: Sized + UnwindSafe,
<<T as LiquidFloatType>::SignedIntType as ArrowPrimitiveType>::Native: UnwindSafe,
<<T as LiquidFloatType>::UnsignedIntType as ArrowPrimitiveType>::Native: UnwindSafe,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request