Trait arrow::array::ArrayBuilder [−][src]
pub trait ArrayBuilder: Any + Send { fn len(&self) -> usize; fn is_empty(&self) -> bool; fn finish(&mut self) -> ArrayRef; fn as_any(&self) -> &dyn Any; fn as_any_mut(&mut self) -> &mut dyn Any; fn into_box_any(self: Box<Self>) -> Box<dyn Any>; }
Expand description
Trait for dealing with different array builders at runtime
Required methods
fn len(&self) -> usize
[src]
fn len(&self) -> usize
[src]Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
[src]Returns whether number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
fn finish(&mut self) -> ArrayRef
[src]Builds the array
fn as_any(&self) -> &dyn Any
[src]
fn as_any(&self) -> &dyn Any
[src]Returns the builder as a non-mutable Any
reference.
This is most useful when one wants to call non-mutable APIs on a specific builder
type. In this case, one can first cast this into a Any
, and then use
downcast_ref
to get a reference on the specific builder.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
This is most useful when one wants to call mutable APIs on a specific builder
type. In this case, one can first cast this into a Any
, and then use
downcast_mut
to get a reference on the specific builder.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
Implementors
impl ArrayBuilder for BooleanBuilder
[src]
impl ArrayBuilder for BooleanBuilder
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl ArrayBuilder for DecimalBuilder
[src]
impl ArrayBuilder for DecimalBuilder
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl ArrayBuilder for FixedSizeBinaryBuilder
[src]
impl ArrayBuilder for FixedSizeBinaryBuilder
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl ArrayBuilder for StructBuilder
[src]
impl ArrayBuilder for StructBuilder
[src]fn len(&self) -> usize
[src]
fn len(&self) -> usize
[src]Returns the number of array slots in the builder.
Note that this always return the first child field builder’s length, and it is the caller’s responsibility to maintain the consistency that all the child field builder should have the equal number of elements.
fn as_any(&self) -> &dyn Any
[src]
fn as_any(&self) -> &dyn Any
[src]Returns the builder as a non-mutable Any
reference.
This is most useful when one wants to call non-mutable APIs on a specific builder
type. In this case, one can first cast this into a Any
, and then use
downcast_ref
to get a reference on the specific builder.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
This is most useful when one wants to call mutable APIs on a specific builder
type. In this case, one can first cast this into a Any
, and then use
downcast_mut
to get a reference on the specific builder.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<K> ArrayBuilder for StringDictionaryBuilder<K> where
K: ArrowDictionaryKeyType,
[src]
impl<K> ArrayBuilder for StringDictionaryBuilder<K> where
K: ArrowDictionaryKeyType,
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as an mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<K, V> ArrayBuilder for PrimitiveDictionaryBuilder<K, V> where
K: ArrowPrimitiveType,
V: ArrowPrimitiveType,
[src]
impl<K, V> ArrayBuilder for PrimitiveDictionaryBuilder<K, V> where
K: ArrowPrimitiveType,
V: ArrowPrimitiveType,
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as an mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<OffsetSize: StringOffsetSizeTrait> ArrayBuilder for GenericStringBuilder<OffsetSize>
[src]
impl<OffsetSize: StringOffsetSizeTrait> ArrayBuilder for GenericStringBuilder<OffsetSize>
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<T: ArrowPrimitiveType> ArrayBuilder for PrimitiveBuilder<T>
[src]
impl<T: ArrowPrimitiveType> ArrayBuilder for PrimitiveBuilder<T>
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.
impl<T: ArrayBuilder> ArrayBuilder for FixedSizeListBuilder<T> where
T: 'static,
[src]
impl<T: ArrayBuilder> ArrayBuilder for FixedSizeListBuilder<T> where
T: 'static,
[src]fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]Returns the boxed builder as a box of Any
.