[−][src]Enum parquet::basic::LogicalType
Common types (logical types) used by frameworks when using Parquet. This helps map between types in those frameworks to the base types in Parquet. This is only metadata and not needed to read or write the data.
Variants
NONE
UTF8
A BYTE_ARRAY actually contains UTF8 encoded chars.
MAP
A map is converted as an optional field containing a repeated key/value pair.
MAP_KEY_VALUE
A key/value pair is converted into a group of two fields.
LIST
A list is converted into an optional field containing a repeated field for its values.
ENUM
An enum is converted into a binary field
DECIMAL
A decimal value. This may be used to annotate binary or fixed primitive types. The underlying byte array stores the unscaled value encoded as two's complement using big-endian byte order (the most significant byte is the zeroth element).
This must be accompanied by a (maximum) precision and a scale in the SchemaElement. The precision specifies the number of digits in the decimal and the scale stores the location of the decimal point. For example 1.23 would have precision 3 (3 total digits) and scale 2 (the decimal point is 2 digits over).
DATE
A date stored as days since Unix epoch, encoded as the INT32 physical type.
TIME_MILLIS
The total number of milliseconds since midnight. The value is stored as an INT32 physical type.
TIME_MICROS
The total number of microseconds since midnight. The value is stored as an INT64 physical type.
TIMESTAMP_MILLIS
Date and time recorded as milliseconds since the Unix epoch. Recorded as a physical type of INT64.
TIMESTAMP_MICROS
Date and time recorded as microseconds since the Unix epoch. The value is stored as an INT64 physical type.
UINT_8
An unsigned 8 bit integer value stored as INT32 physical type.
UINT_16
An unsigned 16 bit integer value stored as INT32 physical type.
UINT_32
An unsigned 32 bit integer value stored as INT32 physical type.
UINT_64
An unsigned 64 bit integer value stored as INT64 physical type.
INT_8
A signed 8 bit integer value stored as INT32 physical type.
INT_16
A signed 16 bit integer value stored as INT32 physical type.
INT_32
A signed 32 bit integer value stored as INT32 physical type.
INT_64
A signed 64 bit integer value stored as INT64 physical type.
JSON
A JSON document embedded within a single UTF8 column.
BSON
A BSON document embedded within a single BINARY column.
INTERVAL
An interval of time.
This type annotates data stored as a FIXED_LEN_BYTE_ARRAY of length 12. This data is composed of three separate little endian unsigned integers. Each stores a component of a duration of time. The first integer identifies the number of months associated with the duration, the second identifies the number of days associated with the duration and the third identifies the number of milliseconds associated with the provided duration. This duration of time is independent of any particular timezone or date.
Trait Implementations
impl PartialEq<LogicalType> for LogicalType
[src]
impl PartialEq<LogicalType> for LogicalType
fn eq(&self, other: &LogicalType) -> bool
[src]
fn eq(&self, other: &LogicalType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<Option<ConvertedType>> for LogicalType
[src]
impl From<Option<ConvertedType>> for LogicalType
impl From<LogicalType> for Option<ConvertedType>
[src]
impl From<LogicalType> for Option<ConvertedType>
fn from(value: LogicalType) -> Self
[src]
fn from(value: LogicalType) -> Self
Performs the conversion.
impl Clone for LogicalType
[src]
impl Clone for LogicalType
fn clone(&self) -> LogicalType
[src]
fn clone(&self) -> LogicalType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for LogicalType
[src]
impl Copy for LogicalType
impl Display for LogicalType
[src]
impl Display for LogicalType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for LogicalType
[src]
impl Debug for LogicalType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for LogicalType
[src]
impl FromStr for LogicalType
Auto Trait Implementations
impl Send for LogicalType
impl Send for LogicalType
impl Sync for LogicalType
impl Sync for LogicalType
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 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]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<'a, T> TryFrom for T where
T: FromStr,
impl<'a, T> TryFrom for T where
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
[src]
fn not_found<S, T>(trait_name: &'static str, method_name: &'static str) -> E where
T: ?Sized,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Create an error for a missing method specialization. Defaults to panicking with type, trait & method names. S
is the encoder/decoder state type, T
is the type being encoded/decoded, and the arguments are the names of the trait and method that should've been overridden. Read more
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T