pub enum BatchColumnarFormat {
Row,
Both(usize),
Structured,
}
Expand description
Column format of a batch.
Variants§
Row
Rows are encoded to ProtoRow
and then a batch is written down as a Parquet with a schema
of (k, v, t, d)
, where k
are the serialized bytes.
Both(usize)
Rows are encoded to ProtoRow
and a columnar struct. The batch is written down as Parquet
with a schema of (k, k_c, v, v_c, t, d)
, where k
are the serialized bytes and k_c
is
nested columnar data.
Structured
Rows are encoded to a columnar struct. The batch is written down as Parquet
with a schema of (t, d, k_s, v_s)
, where k_s
is nested columnar data.
Implementations§
Source§impl BatchColumnarFormat
impl BatchColumnarFormat
Sourcepub const fn default() -> Self
pub const fn default() -> Self
Returns a default value for BatchColumnarFormat
.
Sourcepub fn from_str(s: &str) -> Self
pub fn from_str(s: &str) -> Self
Returns a BatchColumnarFormat
for a given &str
, falling back to a default value if
provided &str
is invalid.
Sourcepub const fn as_str(&self) -> &'static str
pub const fn as_str(&self) -> &'static str
Returns a string representation for the BatchColumnarFormat
.
Sourcepub const fn is_structured(&self) -> bool
pub const fn is_structured(&self) -> bool
Returns if we should encode a Batch in a structured format.
Trait Implementations§
Source§impl Arbitrary for BatchColumnarFormat
impl Arbitrary for BatchColumnarFormat
Source§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = BoxedStrategy<BatchColumnarFormat>
type Strategy = BoxedStrategy<BatchColumnarFormat>
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
Source§impl Clone for BatchColumnarFormat
impl Clone for BatchColumnarFormat
Source§fn clone(&self) -> BatchColumnarFormat
fn clone(&self) -> BatchColumnarFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BatchColumnarFormat
impl Debug for BatchColumnarFormat
Source§impl Display for BatchColumnarFormat
impl Display for BatchColumnarFormat
Source§impl Ord for BatchColumnarFormat
impl Ord for BatchColumnarFormat
Source§fn cmp(&self, other: &BatchColumnarFormat) -> Ordering
fn cmp(&self, other: &BatchColumnarFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BatchColumnarFormat
impl PartialEq for BatchColumnarFormat
Source§impl PartialOrd for BatchColumnarFormat
impl PartialOrd for BatchColumnarFormat
Source§impl Serialize for BatchColumnarFormat
impl Serialize for BatchColumnarFormat
impl Copy for BatchColumnarFormat
impl Eq for BatchColumnarFormat
impl StructuralPartialEq for BatchColumnarFormat
Auto Trait Implementations§
impl Freeze for BatchColumnarFormat
impl RefUnwindSafe for BatchColumnarFormat
impl Send for BatchColumnarFormat
impl Sync for BatchColumnarFormat
impl Unpin for BatchColumnarFormat
impl UnwindSafe for BatchColumnarFormat
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<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§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
key
and return true
if they are equal.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
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 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>
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PreferredContainer for T
impl<T> PreferredContainer for T
Source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
Source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.Source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.