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

Determines if this Row represents a primitive value.

Converts Parquet BOOLEAN type with logical type into bool value.

Converts Parquet INT32 type with converted type into i32 value.

Converts Parquet INT64 type with converted type into i64 value.

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

Converts Parquet FLOAT type with logical type into f32 value.

Converts Parquet DOUBLE type with converted type into f64 value.

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.