pub struct BodyCompression {
pub codec: CompressionType,
pub method: BodyCompressionMethod,
}Expand description
Optional compression for the memory buffers constituting IPC message bodies. Intended for use with RecordBatch but could be used for other message types
Generated from these locations:
- Table
BodyCompressionin the fileMessage.fbs:72
Fields§
§codec: CompressionTypeCompressor library. For LZ4_FRAME, each compressed buffer must consist of a single frame.
method: BodyCompressionMethodIndicates the way the record batch body was compressed
Implementations§
Source§impl BodyCompression
impl BodyCompression
Sourcepub fn builder() -> BodyCompressionBuilder<()>
pub fn builder() -> BodyCompressionBuilder<()>
Creates a BodyCompressionBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_codec: impl WriteAsDefault<CompressionType, CompressionType>, field_method: impl WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for BodyCompression
impl Clone for BodyCompression
Source§fn clone(&self) -> BodyCompression
fn clone(&self) -> BodyCompression
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 BodyCompression
impl Debug for BodyCompression
Source§impl Default for BodyCompression
impl Default for BodyCompression
Source§impl<'de> Deserialize<'de> for BodyCompression
impl<'de> Deserialize<'de> for BodyCompression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BodyCompression
impl Hash for BodyCompression
Source§impl Ord for BodyCompression
impl Ord for BodyCompression
Source§fn cmp(&self, other: &BodyCompression) -> Ordering
fn cmp(&self, other: &BodyCompression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BodyCompression
impl PartialEq for BodyCompression
Source§impl PartialOrd for BodyCompression
impl PartialOrd for BodyCompression
Source§impl Serialize for BodyCompression
impl Serialize for BodyCompression
Source§impl<'a> TryFrom<BodyCompressionRef<'a>> for BodyCompression
impl<'a> TryFrom<BodyCompressionRef<'a>> for BodyCompression
impl Eq for BodyCompression
impl StructuralPartialEq for BodyCompression
impl VectorWrite<Offset<BodyCompression>> for BodyCompression
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<BodyCompression>> for BodyCompression
impl WriteAsOffset<BodyCompression> for BodyCompression
impl<T0: WriteAsDefault<CompressionType, CompressionType>, T1: WriteAsDefault<BodyCompressionMethod, BodyCompressionMethod>> WriteAsOffset<BodyCompression> for BodyCompressionBuilder<(T0, T1)>
impl WriteAsOptional<Offset<BodyCompression>> for BodyCompression
Auto Trait Implementations§
impl Freeze for BodyCompression
impl RefUnwindSafe for BodyCompression
impl Send for BodyCompression
impl Sync for BodyCompression
impl Unpin for BodyCompression
impl UnwindSafe for BodyCompression
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 more