pub struct PrimitiveArrayBuilder<T: PrimitiveArrayItemType> {
bitmap: BitmapBuilder,
data: Vec<T>,
}
Expand description
PrimitiveArrayBuilder
constructs a PrimitiveArray
from Option<Primitive>
.
Fields§
§bitmap: BitmapBuilder
§data: Vec<T>
Trait Implementations§
source§impl<T: PrimitiveArrayItemType> ArrayBuilder for PrimitiveArrayBuilder<T>
impl<T: PrimitiveArrayItemType> ArrayBuilder for PrimitiveArrayBuilder<T>
source§type ArrayType = PrimitiveArray<T>
type ArrayType = PrimitiveArray<T>
Corresponding
Array
of this builder, which is reciprocal to ArrayBuilder
.source§fn new(capacity: usize) -> Self
fn new(capacity: usize) -> Self
Create a new builder with
capacity
.
TODO: remove this function from the trait. Let it be methods of each concrete builders.source§fn append_array(&mut self, other: &PrimitiveArray<T>)
fn append_array(&mut self, other: &PrimitiveArray<T>)
Append an array to builder.
source§fn finish(self) -> PrimitiveArray<T>
fn finish(self) -> PrimitiveArray<T>
Finish build and return a new array.
source§fn append(&mut self, value: Option<<Self::ArrayType as Array>::RefItem<'_>>)
fn append(&mut self, value: Option<<Self::ArrayType as Array>::RefItem<'_>>)
Append a value to builder.
source§fn append_owned(&mut self, value: Option<<Self::ArrayType as Array>::OwnedItem>)
fn append_owned(&mut self, value: Option<<Self::ArrayType as Array>::OwnedItem>)
Append an owned value to builder.
fn append_null(&mut self)
source§fn append_array_element(&mut self, other: &Self::ArrayType, idx: usize)
fn append_array_element(&mut self, other: &Self::ArrayType, idx: usize)
Append an element in another array into builder.
source§impl<T: Clone + PrimitiveArrayItemType> Clone for PrimitiveArrayBuilder<T>
impl<T: Clone + PrimitiveArrayItemType> Clone for PrimitiveArrayBuilder<T>
source§fn clone(&self) -> PrimitiveArrayBuilder<T>
fn clone(&self) -> PrimitiveArrayBuilder<T>
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<T: Debug + PrimitiveArrayItemType> Debug for PrimitiveArrayBuilder<T>
impl<T: Debug + PrimitiveArrayItemType> Debug for PrimitiveArrayBuilder<T>
source§impl<T: PrimitiveArrayItemType> EstimateSize for PrimitiveArrayBuilder<T>
impl<T: PrimitiveArrayItemType> EstimateSize for PrimitiveArrayBuilder<T>
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<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.
Auto Trait Implementations§
impl<T> Freeze for PrimitiveArrayBuilder<T>
impl<T> RefUnwindSafe for PrimitiveArrayBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for PrimitiveArrayBuilder<T>
impl<T> Sync for PrimitiveArrayBuilder<T>
impl<T> Unpin for PrimitiveArrayBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for PrimitiveArrayBuilder<T>where
T: 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§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.