pub enum ArrayBuilderImpl {
Show 20 variants
Int16(I16ArrayBuilder),
Int32(I32ArrayBuilder),
Int64(I64ArrayBuilder),
Int256(Int256ArrayBuilder),
Float32(F32ArrayBuilder),
Float64(F64ArrayBuilder),
Utf8(Utf8ArrayBuilder),
Bool(BoolArrayBuilder),
Decimal(DecimalArrayBuilder),
Interval(IntervalArrayBuilder),
Date(DateArrayBuilder),
Time(TimeArrayBuilder),
Timestamp(TimestampArrayBuilder),
Timestamptz(TimestamptzArrayBuilder),
Jsonb(JsonbArrayBuilder),
Serial(SerialArrayBuilder),
Struct(StructArrayBuilder),
List(ListArrayBuilder),
Map(MapArrayBuilder),
Bytea(BytesArrayBuilder),
}
Expand description
ArrayBuilderImpl
embeds all possible array in array
module.
Variants§
Int16(I16ArrayBuilder)
Int32(I32ArrayBuilder)
Int64(I64ArrayBuilder)
Int256(Int256ArrayBuilder)
Float32(F32ArrayBuilder)
Float64(F64ArrayBuilder)
Utf8(Utf8ArrayBuilder)
Bool(BoolArrayBuilder)
Decimal(DecimalArrayBuilder)
Interval(IntervalArrayBuilder)
Date(DateArrayBuilder)
Time(TimeArrayBuilder)
Timestamp(TimestampArrayBuilder)
Timestamptz(TimestamptzArrayBuilder)
Jsonb(JsonbArrayBuilder)
Serial(SerialArrayBuilder)
Struct(StructArrayBuilder)
List(ListArrayBuilder)
Map(MapArrayBuilder)
Bytea(BytesArrayBuilder)
Implementations§
source§impl ArrayBuilderImpl
impl ArrayBuilderImpl
Implements all ArrayBuilder
functions with for_all_variant
.
pub fn with_type(capacity: usize, ty: DataType) -> Self
pub fn append_array(&mut self, other: &ArrayImpl)
pub fn append_null(&mut self)
pub fn append_n_null(&mut self, n: usize)
sourcepub fn append_n(&mut self, n: usize, datum: impl ToDatumRef)
pub fn append_n(&mut self, n: usize, datum: impl ToDatumRef)
sourcepub fn append(&mut self, datum: impl ToDatumRef)
pub fn append(&mut self, datum: impl ToDatumRef)
pub fn append_array_element(&mut self, other: &ArrayImpl, idx: usize)
pub fn pop(&mut self) -> Option<()>
pub fn finish(self) -> ArrayImpl
pub fn get_ident(&self) -> &'static str
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for ArrayBuilderImpl
impl Clone for ArrayBuilderImpl
source§fn clone(&self) -> ArrayBuilderImpl
fn clone(&self) -> ArrayBuilderImpl
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 ArrayBuilderImpl
impl Debug for ArrayBuilderImpl
source§impl EstimateSize for ArrayBuilderImpl
impl EstimateSize for ArrayBuilderImpl
source§fn estimated_heap_size(&self) -> usize
fn estimated_heap_size(&self) -> usize
The estimated heap size of the current struct in bytes.
source§fn estimated_size(&self) -> usizewhere
Self: Sized,
fn estimated_size(&self) -> usizewhere
Self: Sized,
The estimated total size of the current struct in bytes, including the
estimated_heap_size
and the size of Self
.source§impl From<BoolArrayBuilder> for ArrayBuilderImpl
impl From<BoolArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: BoolArrayBuilder) -> Self
fn from(builder: BoolArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<BytesArrayBuilder> for ArrayBuilderImpl
impl From<BytesArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: BytesArrayBuilder) -> Self
fn from(builder: BytesArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<Int256ArrayBuilder> for ArrayBuilderImpl
impl From<Int256ArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: Int256ArrayBuilder) -> Self
fn from(builder: Int256ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<JsonbArrayBuilder> for ArrayBuilderImpl
impl From<JsonbArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: JsonbArrayBuilder) -> Self
fn from(builder: JsonbArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<ListArrayBuilder> for ArrayBuilderImpl
impl From<ListArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: ListArrayBuilder) -> Self
fn from(builder: ListArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<MapArrayBuilder> for ArrayBuilderImpl
impl From<MapArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: MapArrayBuilder) -> Self
fn from(builder: MapArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Date>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Date>> for ArrayBuilderImpl
source§fn from(builder: DateArrayBuilder) -> Self
fn from(builder: DateArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Decimal>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Decimal>> for ArrayBuilderImpl
source§fn from(builder: DecimalArrayBuilder) -> Self
fn from(builder: DecimalArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Interval>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Interval>> for ArrayBuilderImpl
source§fn from(builder: IntervalArrayBuilder) -> Self
fn from(builder: IntervalArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<OrderedFloat<f32>>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<OrderedFloat<f32>>> for ArrayBuilderImpl
source§fn from(builder: F32ArrayBuilder) -> Self
fn from(builder: F32ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<OrderedFloat<f64>>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<OrderedFloat<f64>>> for ArrayBuilderImpl
source§fn from(builder: F64ArrayBuilder) -> Self
fn from(builder: F64ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Serial>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Serial>> for ArrayBuilderImpl
source§fn from(builder: SerialArrayBuilder) -> Self
fn from(builder: SerialArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Time>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Time>> for ArrayBuilderImpl
source§fn from(builder: TimeArrayBuilder) -> Self
fn from(builder: TimeArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Timestamp>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Timestamp>> for ArrayBuilderImpl
source§fn from(builder: TimestampArrayBuilder) -> Self
fn from(builder: TimestampArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<Timestamptz>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<Timestamptz>> for ArrayBuilderImpl
source§fn from(builder: TimestamptzArrayBuilder) -> Self
fn from(builder: TimestamptzArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<i16>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<i16>> for ArrayBuilderImpl
source§fn from(builder: I16ArrayBuilder) -> Self
fn from(builder: I16ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<i32>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<i32>> for ArrayBuilderImpl
source§fn from(builder: I32ArrayBuilder) -> Self
fn from(builder: I32ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveArrayBuilder<i64>> for ArrayBuilderImpl
impl From<PrimitiveArrayBuilder<i64>> for ArrayBuilderImpl
source§fn from(builder: I64ArrayBuilder) -> Self
fn from(builder: I64ArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<StructArrayBuilder> for ArrayBuilderImpl
impl From<StructArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: StructArrayBuilder) -> Self
fn from(builder: StructArrayBuilder) -> Self
Converts to this type from the input type.
source§impl From<Utf8ArrayBuilder> for ArrayBuilderImpl
impl From<Utf8ArrayBuilder> for ArrayBuilderImpl
source§fn from(builder: Utf8ArrayBuilder) -> Self
fn from(builder: Utf8ArrayBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayBuilderImpl
impl RefUnwindSafe for ArrayBuilderImpl
impl Send for ArrayBuilderImpl
impl Sync for ArrayBuilderImpl
impl Unpin for ArrayBuilderImpl
impl UnwindSafe for ArrayBuilderImpl
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<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>
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
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<M> MetricVecRelabelExt for M
impl<M> MetricVecRelabelExt for M
source§fn relabel(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level
.source§fn relabel_n(
self,
metric_level: MetricLevel,
relabel_threshold: MetricLevel,
relabel_num: usize,
) -> RelabeledMetricVec<M>
fn relabel_n( self, metric_level: MetricLevel, relabel_threshold: MetricLevel, relabel_num: usize, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n
.source§fn relabel_debug_1(
self,
relabel_threshold: MetricLevel,
) -> RelabeledMetricVec<M>
fn relabel_debug_1( self, relabel_threshold: MetricLevel, ) -> RelabeledMetricVec<M>
Equivalent to
RelabeledMetricVec::with_metric_level_relabel_n
with metric_level
set to
MetricLevel::Debug
and relabel_num
set to 1.