Enum parquet::record::Field[][src]

pub enum Field {
Show variants Null, Bool(bool), Byte(i8), Short(i16), Int(i32), Long(i64), UByte(u8), UShort(u16), UInt(u32), ULong(u64), Float(f32), Double(f64), Decimal(Decimal), Str(String), Bytes(ByteArray), Date(u32), TimestampMillis(u64), TimestampMicros(u64), Group(Row), ListInternal(List), MapInternal(Map),
}
Expand description

API to represent a single field in a Row.

Variants

Null

Null value.

Bool(bool)

Boolean value (true, false).

Byte(i8)

Signed integer INT_8.

Short(i16)

Signed integer INT_16.

Int(i32)

Signed integer INT_32.

Long(i64)

Signed integer INT_64.

UByte(u8)
UShort(u16)
UInt(u32)
ULong(u64)
Float(f32)

IEEE 32-bit floating point value.

Double(f64)

IEEE 64-bit floating point value.

Decimal(Decimal)

Decimal value.

Str(String)

UTF-8 encoded character string.

Bytes(ByteArray)

General binary value.

Date(u32)

Date without a time of day, stores the number of days from the Unix epoch, 1 January 1970.

TimestampMillis(u64)

Milliseconds from the Unix epoch, 1 January 1970.

TimestampMicros(u64)

Microseconds from the Unix epoch, 1 Janiary 1970.

Group(Row)

Struct, child elements are tuples of field-value pairs.

ListInternal(List)

List of elements.

MapInternal(Map)

List of key-value pairs.

Implementations

impl Field[src]

pub fn is_primitive(&self) -> bool[src]

Determines if this Row represents a primitive value.

pub fn convert_bool(_descr: &ColumnDescPtr, value: bool) -> Self[src]

Converts Parquet BOOLEAN type with logical type into bool value.

pub fn convert_int32(descr: &ColumnDescPtr, value: i32) -> Self[src]

Converts Parquet INT32 type with converted type into i32 value.

pub fn convert_int64(descr: &ColumnDescPtr, value: i64) -> Self[src]

Converts Parquet INT64 type with converted type into i64 value.

pub fn convert_int96(_descr: &ColumnDescPtr, value: Int96) -> Self[src]

Converts Parquet INT96 (nanosecond timestamps) type and logical type into Timestamp value.

pub fn convert_float(_descr: &ColumnDescPtr, value: f32) -> Self[src]

Converts Parquet FLOAT type with logical type into f32 value.

pub fn convert_double(_descr: &ColumnDescPtr, value: f64) -> Self[src]

Converts Parquet DOUBLE type with converted type into f64 value.

pub fn convert_byte_array(descr: &ColumnDescPtr, value: ByteArray) -> Self[src]

Converts Parquet BYTE_ARRAY type with converted type into either UTF8 string or array of bytes.

Trait Implementations

impl Clone for Field[src]

fn clone(&self) -> Field[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Field[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Display for Field[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<Field> for Field[src]

fn eq(&self, other: &Field) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Field) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for Field[src]

Auto Trait Implementations

impl RefUnwindSafe for Field

impl Send for Field

impl Sync for Field

impl Unpin for Field

impl UnwindSafe for Field

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V