[−][src]Trait arrow::array::ArrayBuilder
Trait for dealing with different array builders at runtime
Required methods
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array
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]
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]
Returns the boxed builder as a box of Any
.
Implementors
impl ArrayBuilder for BooleanBuilder
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl ArrayBuilder for DecimalBuilder
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl ArrayBuilder for FixedSizeBinaryBuilder
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl ArrayBuilder for StructBuilder
[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 is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array.
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]
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]
Returns the boxed builder as a box of Any
.
impl<K> ArrayBuilder for StringDictionaryBuilder<K> where
K: ArrowDictionaryKeyType,
[src]
K: ArrowDictionaryKeyType,
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as an non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl<K, V> ArrayBuilder for PrimitiveDictionaryBuilder<K, V> where
K: ArrowPrimitiveType,
V: ArrowPrimitiveType,
[src]
K: ArrowPrimitiveType,
V: ArrowPrimitiveType,
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as an non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl<T: ArrayBuilder> ArrayBuilder for FixedSizeListBuilder<T> where
T: 'static,
[src]
T: 'static,
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
impl<T: ArrowPrimitiveType> ArrayBuilder for PrimitiveBuilder<T>
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
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]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.