pub enum ArrayImpl {
Show 21 variants
Int16(I16Array),
Int32(I32Array),
Int64(I64Array),
Int256(Int256Array),
Float32(F32Array),
Float64(F64Array),
Utf8(Utf8Array),
Bool(BoolArray),
Decimal(DecimalArray),
Interval(IntervalArray),
Date(DateArray),
Time(TimeArray),
Timestamp(TimestampArray),
Timestamptz(TimestamptzArray),
Jsonb(JsonbArray),
Serial(SerialArray),
Struct(StructArray),
List(ListArray),
Map(MapArray),
Vector(VectorArray),
Bytea(BytesArray),
}Expand description
ArrayImpl embeds all possible array in array module.
Variants§
Int16(I16Array)
Int32(I32Array)
Int64(I64Array)
Int256(Int256Array)
Float32(F32Array)
Float64(F64Array)
Utf8(Utf8Array)
Bool(BoolArray)
Decimal(DecimalArray)
Interval(IntervalArray)
Date(DateArray)
Time(TimeArray)
Timestamp(TimestampArray)
Timestamptz(TimestamptzArray)
Jsonb(JsonbArray)
Serial(SerialArray)
Struct(StructArray)
List(ListArray)
Map(MapArray)
Vector(VectorArray)
Bytea(BytesArray)
Implementations§
Source§impl ArrayImpl
impl ArrayImpl
pub fn from_protobuf(array: &PbArray, cardinality: usize) -> ArrayResult<Self>
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_int256(&self) -> &Int256Array
pub fn as_int256(&self) -> &Int256Array
§Panics
Panics if type mismatches.
Sourcepub fn into_int256(self) -> Int256Array
pub fn into_int256(self) -> Int256Array
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_float32(&self) -> &F32Array
pub fn as_float32(&self) -> &F32Array
§Panics
Panics if type mismatches.
Sourcepub fn into_float32(self) -> F32Array
pub fn into_float32(self) -> F32Array
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_float64(&self) -> &F64Array
pub fn as_float64(&self) -> &F64Array
§Panics
Panics if type mismatches.
Sourcepub fn into_float64(self) -> F64Array
pub fn into_float64(self) -> F64Array
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_decimal(&self) -> &DecimalArray
pub fn as_decimal(&self) -> &DecimalArray
§Panics
Panics if type mismatches.
Sourcepub fn into_decimal(self) -> DecimalArray
pub fn into_decimal(self) -> DecimalArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_interval(&self) -> &IntervalArray
pub fn as_interval(&self) -> &IntervalArray
§Panics
Panics if type mismatches.
Sourcepub fn into_interval(self) -> IntervalArray
pub fn into_interval(self) -> IntervalArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_timestamp(&self) -> &TimestampArray
pub fn as_timestamp(&self) -> &TimestampArray
§Panics
Panics if type mismatches.
Sourcepub fn into_timestamp(self) -> TimestampArray
pub fn into_timestamp(self) -> TimestampArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_timestamptz(&self) -> &TimestamptzArray
pub fn as_timestamptz(&self) -> &TimestamptzArray
§Panics
Panics if type mismatches.
Sourcepub fn into_timestamptz(self) -> TimestamptzArray
pub fn into_timestamptz(self) -> TimestamptzArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_jsonb(&self) -> &JsonbArray
pub fn as_jsonb(&self) -> &JsonbArray
§Panics
Panics if type mismatches.
Sourcepub fn into_jsonb(self) -> JsonbArray
pub fn into_jsonb(self) -> JsonbArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_serial(&self) -> &SerialArray
pub fn as_serial(&self) -> &SerialArray
§Panics
Panics if type mismatches.
Sourcepub fn into_serial(self) -> SerialArray
pub fn into_serial(self) -> SerialArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_struct(&self) -> &StructArray
pub fn as_struct(&self) -> &StructArray
§Panics
Panics if type mismatches.
Sourcepub fn into_struct(self) -> StructArray
pub fn into_struct(self) -> StructArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_vector(&self) -> &VectorArray
pub fn as_vector(&self) -> &VectorArray
§Panics
Panics if type mismatches.
Sourcepub fn into_vector(self) -> VectorArray
pub fn into_vector(self) -> VectorArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
Sourcepub fn as_bytea(&self) -> &BytesArray
pub fn as_bytea(&self) -> &BytesArray
§Panics
Panics if type mismatches.
Sourcepub fn into_bytea(self) -> BytesArray
pub fn into_bytea(self) -> BytesArray
§Panics
Panics if type mismatches.
Source§impl ArrayImpl
impl ArrayImpl
pub fn is_empty(&self) -> bool
Sourcepub fn null_bitmap(&self) -> &Bitmap
pub fn null_bitmap(&self) -> &Bitmap
Get the null Bitmap of the array.
pub fn into_null_bitmap(self) -> Bitmap
pub fn to_protobuf(&self) -> PbArray
pub fn hash_at<H: Hasher>(&self, idx: usize, state: &mut H)
pub fn hash_vec<H: Hasher>(&self, hashers: &mut [H], vis: &Bitmap)
Sourcepub fn compact_vis(&self, visibility: &Bitmap, cardinality: usize) -> Self
pub fn compact_vis(&self, visibility: &Bitmap, cardinality: usize) -> Self
Select some elements from Array based on visibility bitmap.
pub fn get_ident(&self) -> &'static str
Sourcepub fn to_datum(&self) -> Datum
pub fn to_datum(&self) -> Datum
If the array only have one single element, convert it to Datum.
Sourcepub fn value_at(&self, idx: usize) -> DatumRef<'_>
pub fn value_at(&self, idx: usize) -> DatumRef<'_>
Get the enum-wrapped ScalarRefImpl out of the Array.
Sourcepub unsafe fn value_at_unchecked(&self, idx: usize) -> DatumRef<'_>
pub unsafe fn value_at_unchecked(&self, idx: usize) -> DatumRef<'_>
§Safety
This function is unsafe because it does not check the validity of idx. It is caller’s
responsibility to ensure the validity of idx.
Unsafe version of getting the enum-wrapped ScalarRefImpl out of the Array.
pub fn set_bitmap(&mut self, bitmap: Bitmap)
pub fn create_builder(&self, capacity: usize) -> ArrayBuilderImpl
pub fn into_ref(self) -> ArrayRef
pub fn iter( &self, ) -> impl DoubleEndedIterator<Item = DatumRef<'_>> + ExactSizeIterator
Trait Implementations§
Source§impl EstimateSize for ArrayImpl
impl EstimateSize for ArrayImpl
Source§fn estimated_heap_size(&self) -> usize
fn estimated_heap_size(&self) -> usize
Source§fn estimated_size(&self) -> usizewhere
Self: Sized,
fn estimated_size(&self) -> usizewhere
Self: Sized,
estimated_heap_size
and the size of Self.Source§impl<'a> From<&'a ArrayImpl> for &'a BytesArray
impl<'a> From<&'a ArrayImpl> for &'a BytesArray
Source§impl<'a> From<&'a ArrayImpl> for &'a Int256Array
impl<'a> From<&'a ArrayImpl> for &'a Int256Array
Source§impl<'a> From<&'a ArrayImpl> for &'a JsonbArray
impl<'a> From<&'a ArrayImpl> for &'a JsonbArray
Source§impl<'a> From<&'a ArrayImpl> for &'a DecimalArray
impl<'a> From<&'a ArrayImpl> for &'a DecimalArray
Source§impl<'a> From<&'a ArrayImpl> for &'a IntervalArray
impl<'a> From<&'a ArrayImpl> for &'a IntervalArray
Source§impl<'a> From<&'a ArrayImpl> for &'a SerialArray
impl<'a> From<&'a ArrayImpl> for &'a SerialArray
Source§impl<'a> From<&'a ArrayImpl> for &'a TimestampArray
impl<'a> From<&'a ArrayImpl> for &'a TimestampArray
Source§impl<'a> From<&'a ArrayImpl> for &'a TimestamptzArray
impl<'a> From<&'a ArrayImpl> for &'a TimestamptzArray
Source§impl<'a> From<&'a ArrayImpl> for &'a StructArray
impl<'a> From<&'a ArrayImpl> for &'a StructArray
Source§impl<'a> From<&'a ArrayImpl> for &'a VectorArray
impl<'a> From<&'a ArrayImpl> for &'a VectorArray
Source§impl From<ArrayImpl> for BytesArray
impl From<ArrayImpl> for BytesArray
Source§impl From<ArrayImpl> for Int256Array
impl From<ArrayImpl> for Int256Array
Source§impl From<ArrayImpl> for JsonbArray
impl From<ArrayImpl> for JsonbArray
Source§impl From<ArrayImpl> for DecimalArray
impl From<ArrayImpl> for DecimalArray
Source§impl From<ArrayImpl> for IntervalArray
impl From<ArrayImpl> for IntervalArray
Source§impl From<ArrayImpl> for SerialArray
impl From<ArrayImpl> for SerialArray
Source§impl From<ArrayImpl> for TimestampArray
impl From<ArrayImpl> for TimestampArray
Source§impl From<ArrayImpl> for TimestamptzArray
impl From<ArrayImpl> for TimestamptzArray
Source§impl From<ArrayImpl> for StructArray
impl From<ArrayImpl> for StructArray
Source§impl From<ArrayImpl> for VectorArray
impl From<ArrayImpl> for VectorArray
Source§impl From<BytesArray> for ArrayImpl
impl From<BytesArray> for ArrayImpl
Source§fn from(arr: BytesArray) -> Self
fn from(arr: BytesArray) -> Self
Source§impl From<Int256Array> for ArrayImpl
impl From<Int256Array> for ArrayImpl
Source§fn from(arr: Int256Array) -> Self
fn from(arr: Int256Array) -> Self
Source§impl From<JsonbArray> for ArrayImpl
impl From<JsonbArray> for ArrayImpl
Source§fn from(arr: JsonbArray) -> Self
fn from(arr: JsonbArray) -> Self
Source§impl<T: PrimitiveArrayItemType> From<PrimitiveArray<T>> for ArrayImpl
impl<T: PrimitiveArrayItemType> From<PrimitiveArray<T>> for ArrayImpl
Source§fn from(arr: PrimitiveArray<T>) -> Self
fn from(arr: PrimitiveArray<T>) -> Self
Source§impl From<StructArray> for ArrayImpl
impl From<StructArray> for ArrayImpl
Source§fn from(arr: StructArray) -> Self
fn from(arr: StructArray) -> Self
Source§impl From<VectorArray> for ArrayImpl
impl From<VectorArray> for ArrayImpl
Source§fn from(arr: VectorArray) -> Self
fn from(arr: VectorArray) -> Self
impl Eq for ArrayImpl
Auto Trait Implementations§
impl Freeze for ArrayImpl
impl RefUnwindSafe for ArrayImpl
impl Send for ArrayImpl
impl Sync for ArrayImpl
impl Unpin for ArrayImpl
impl UnwindSafe for ArrayImpl
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,
§impl<T> Conv for T
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§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>
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§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>
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>
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>
RelabeledMetricVec::with_metric_level_relabel_n with metric_level set to
MetricLevel::Debug and relabel_num set to 1.§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SameOrElseExt for Twhere
T: Eq,
impl<T> SameOrElseExt for Twhere
T: Eq,
Source§fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
fn same_or_else(self, other: T, f: impl FnOnce() -> T) -> T
self and other are equal, if so, return self, otherwise return the result of f().§impl<T> Scope for T
impl<T> Scope for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.