pub enum Field {
Show 22 variants
Null,
Bool(bool),
Byte(i8),
Short(i16),
Int(i32),
Long(i64),
UByte(u8),
UShort(u16),
UInt(u32),
ULong(u64),
Float16(f16),
Float(f32),
Double(f64),
Decimal(Decimal),
Str(String),
Bytes(ByteArray),
Date(i32),
TimestampMillis(i64),
TimestampMicros(i64),
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)
Float16(f16)
IEEE 16-bit floating point value.
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(i32)
Date without a time of day, stores the number of days from the Unix epoch, 1 January 1970.
TimestampMillis(i64)
Milliseconds from the Unix epoch, 1 January 1970.
TimestampMicros(i64)
Microseconds from the Unix epoch, 1 January 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§
source§impl Field
impl Field
sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Determines if this Row represents a primitive value.
sourcepub fn convert_bool(_descr: &ColumnDescPtr, value: bool) -> Self
pub fn convert_bool(_descr: &ColumnDescPtr, value: bool) -> Self
Converts Parquet BOOLEAN type with logical type into bool
value.
sourcepub fn convert_int32(descr: &ColumnDescPtr, value: i32) -> Self
pub fn convert_int32(descr: &ColumnDescPtr, value: i32) -> Self
Converts Parquet INT32 type with converted type into i32
value.
sourcepub fn convert_int64(descr: &ColumnDescPtr, value: i64) -> Self
pub fn convert_int64(descr: &ColumnDescPtr, value: i64) -> Self
Converts Parquet INT64 type with converted type into i64
value.
sourcepub fn convert_int96(_descr: &ColumnDescPtr, value: Int96) -> Self
pub fn convert_int96(_descr: &ColumnDescPtr, value: Int96) -> Self
Converts Parquet INT96 (nanosecond timestamps) type and logical type into
Timestamp
value.
sourcepub fn convert_float(_descr: &ColumnDescPtr, value: f32) -> Self
pub fn convert_float(_descr: &ColumnDescPtr, value: f32) -> Self
Converts Parquet FLOAT type with logical type into f32
value.
sourcepub fn convert_double(_descr: &ColumnDescPtr, value: f64) -> Self
pub fn convert_double(_descr: &ColumnDescPtr, value: f64) -> Self
Converts Parquet DOUBLE type with converted type into f64
value.
sourcepub fn convert_byte_array(
descr: &ColumnDescPtr,
value: ByteArray,
) -> Result<Self>
pub fn convert_byte_array( descr: &ColumnDescPtr, value: ByteArray, ) -> Result<Self>
Converts Parquet BYTE_ARRAY type with converted type into a UTF8 string, decimal, float16, or an array of bytes.
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl !Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)