pub type Int8Vector = PrimitiveVector<Int8Type>;
Aliased Type§
struct Int8Vector {
array: PrimitiveArray<Int8Type>,
}
Fields§
§array: PrimitiveArray<Int8Type>
Implementations
Source§impl<T: LogicalPrimitiveType> PrimitiveVector<T>
impl<T: LogicalPrimitiveType> PrimitiveVector<T>
pub fn new(array: PrimitiveArray<T::ArrowPrimitive>) -> Self
pub fn try_from_arrow_array(array: impl AsRef<dyn Array>) -> Result<Self>
pub fn from_slice<P: AsRef<[T::Native]>>(slice: P) -> Self
pub fn from_wrapper_slice<P: AsRef<[T::Wrapper]>>(slice: P) -> Self
pub fn from_vec(vector: Vec<T::Native>) -> Self
pub fn from_iter_values<I: IntoIterator<Item = T::Native>>(iter: I) -> Self
pub fn from_values<I: IntoIterator<Item = T::Native>>(iter: I) -> Self
Sourcepub fn as_arrow(&self) -> &PrimitiveArray<T::ArrowPrimitive>
pub fn as_arrow(&self) -> &PrimitiveArray<T::ArrowPrimitive>
Get the inner arrow array.
Trait Implementations
Source§impl<T: LogicalPrimitiveType> Debug for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> Debug for PrimitiveVector<T>
Source§impl<T: LogicalPrimitiveType> From<PrimitiveArray<<T as LogicalPrimitiveType>::ArrowPrimitive>> for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> From<PrimitiveArray<<T as LogicalPrimitiveType>::ArrowPrimitive>> for PrimitiveVector<T>
Source§fn from(array: PrimitiveArray<T::ArrowPrimitive>) -> Self
fn from(array: PrimitiveArray<T::ArrowPrimitive>) -> Self
Converts to this type from the input type.
Source§impl<T: LogicalPrimitiveType> From<Vec<Option<<T as LogicalPrimitiveType>::Native>>> for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> From<Vec<Option<<T as LogicalPrimitiveType>::Native>>> for PrimitiveVector<T>
Source§impl<T: LogicalPrimitiveType> PartialEq for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> PartialEq for PrimitiveVector<T>
Source§impl<T: LogicalPrimitiveType> ScalarVector for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> ScalarVector for PrimitiveVector<T>
type OwnedItem = <T as LogicalPrimitiveType>::Wrapper
Source§type RefItem<'a> = <T as LogicalPrimitiveType>::Wrapper
type RefItem<'a> = <T as LogicalPrimitiveType>::Wrapper
The reference item of this vector.
Source§type Iter<'a> = PrimitiveIter<'a, T>
type Iter<'a> = PrimitiveIter<'a, T>
Iterator type of this vector.
Source§type Builder = PrimitiveVectorBuilder<T>
type Builder = PrimitiveVectorBuilder<T>
Builder type to build this vector.
Source§fn get_data(&self, idx: usize) -> Option<Self::RefItem<'_>>
fn get_data(&self, idx: usize) -> Option<Self::RefItem<'_>>
Returns the reference to an element at given position. Read more
fn from_slice(data: &[Self::RefItem<'_>]) -> Self
fn from_iterator<'a>(it: impl Iterator<Item = Self::RefItem<'a>>) -> Self
fn from_owned_iterator( it: impl Iterator<Item = Option<Self::OwnedItem>>, ) -> Self
fn from_vec<I: Into<Self::OwnedItem>>(values: Vec<I>) -> Self
Source§impl<T: LogicalPrimitiveType> Serializable for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> Serializable for PrimitiveVector<T>
Source§impl<T: LogicalPrimitiveType> Vector for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> Vector for PrimitiveVector<T>
Source§fn data_type(&self) -> ConcreteDataType
fn data_type(&self) -> ConcreteDataType
Returns the data type of the vector. Read more
fn vector_type_name(&self) -> String
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the vector as Any so that it can be
downcast to a specific implementation.
Source§fn to_arrow_array(&self) -> ArrayRef
fn to_arrow_array(&self) -> ArrayRef
Convert this vector to a new arrow [ArrayRef].
Source§fn to_boxed_arrow_array(&self) -> Box<dyn Array>
fn to_boxed_arrow_array(&self) -> Box<dyn Array>
Convert this vector to a new boxed arrow [Array].
Source§fn memory_size(&self) -> usize
fn memory_size(&self) -> usize
Returns the memory size of vector.
Source§impl<T: LogicalPrimitiveType> VectorOp for PrimitiveVector<T>
impl<T: LogicalPrimitiveType> VectorOp for PrimitiveVector<T>
Source§fn replicate(&self, offsets: &[usize]) -> VectorRef
fn replicate(&self, offsets: &[usize]) -> VectorRef
Copies each element according
offsets
parameter. Read moreSource§fn filter(&self, filter: &BooleanVector) -> Result<VectorRef>
fn filter(&self, filter: &BooleanVector) -> Result<VectorRef>
Filters the vector, returns elements matching the
filter
(i.e. where the values are true). Read more