[−][src]Trait arrow::array::ArrayBuilder
Trait for dealing with different array builders at runtime
Required methods
fn len(&self) -> usize
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
Returns whether number of array slots is zero
fn append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
Returns the data type of the builder
This is used for validating array data types in append_data
fn finish(&mut self) -> ArrayRef
Builds the array
fn as_any(&self) -> &dyn Any
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
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>
Returns the boxed builder as a box of Any
.
Implementors
impl ArrayBuilder for BinaryBuilder
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
fn append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 LargeBinaryBuilder
[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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 LargeStringBuilder
[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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 StringBuilder
[src]
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
fn append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, _data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, _data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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: ArrayBuilder> ArrayBuilder for LargeListBuilder<T> where
T: 'static,
[src]
T: 'static,
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
fn append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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: ArrayBuilder> ArrayBuilder for ListBuilder<T> where
T: 'static,
[src]
T: 'static,
fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
fn append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
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 append_data(&mut self, data: &[ArrayDataRef]) -> Result<()>
[src]
Appends data from other arrays into the builder
This is most useful when concatenating arrays of the same type into a builder.
fn data_type(&self) -> DataType
[src]
Returns the data type of the builder
This is used for validating array data types in append_data
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.