pub struct BufferCompression {
pub scheme: i32,
pub level: Option<i32>,
}
Expand description
Compression applied to a single buffer of data
A buffer is the leaf of the compression tree. Unlike data blocks, which can be further compressed with a variety of techniques, a buffer cannot be understood in any particular way.
A general compression scheme may be applied to a buffer. This is something like zstd, lz4, etc. The entire buffer is compressed as a single unit. If this happens then any parent encoding becomes opaque, even if it would normally be transparent.
This is a leaf, no further compression is applied to the data.
Fields§
§scheme: i32
A general compression scheme to apply to the buffer
level: Option<i32>
The compression level
Optional, if not present a scheme-specific default value will be used.
Interpretation of this value depends on the compression scheme. Generally, larger values indicate more compression at the expense of more CPU time.
Implementations§
Source§impl BufferCompression
impl BufferCompression
Sourcepub fn scheme(&self) -> CompressionScheme
pub fn scheme(&self) -> CompressionScheme
Returns the enum value of scheme
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_scheme(&mut self, value: CompressionScheme)
pub fn set_scheme(&mut self, value: CompressionScheme)
Sets scheme
to the provided enum value.
Trait Implementations§
Source§impl Clone for BufferCompression
impl Clone for BufferCompression
Source§fn clone(&self) -> BufferCompression
fn clone(&self) -> BufferCompression
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BufferCompression
impl Debug for BufferCompression
Source§impl Default for BufferCompression
impl Default for BufferCompression
Source§impl Message for BufferCompression
impl Message for BufferCompression
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for BufferCompression
impl Name for BufferCompression
Source§const NAME: &'static str = "BufferCompression"
const NAME: &'static str = "BufferCompression"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "lance.encodings21"
const PACKAGE: &'static str = "lance.encodings21"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for BufferCompression
impl PartialEq for BufferCompression
impl Copy for BufferCompression
impl StructuralPartialEq for BufferCompression
Auto Trait Implementations§
impl Freeze for BufferCompression
impl RefUnwindSafe for BufferCompression
impl Send for BufferCompression
impl Sync for BufferCompression
impl Unpin for BufferCompression
impl UnwindSafe for BufferCompression
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
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>
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>
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