Struct that describes the logical type annotation. More...
#include <parquet_schema.hpp>
Public Types | |
enum | Type : uint8_t { UNDEFINED , STRING , MAP , LIST , ENUM , DECIMAL , DATE , TIME , TIMESTAMP , INTEGER = 10 , UNKNOWN , JSON , BSON } |
Logical type annotations to replace ConvertedType. | |
Public Member Functions | |
LogicalType (Type tp=Type::UNDEFINED) | |
Default constructor. More... | |
LogicalType (DecimalType &&dt) | |
Constructor for Decimal logical type. More... | |
LogicalType (TimeType &&tt) | |
Constructor for Time logical type. More... | |
LogicalType (TimestampType &&tst) | |
Constructor for Timestamp logical type. More... | |
LogicalType (IntType &&it) | |
Constructor for Integer logical type. More... | |
constexpr CUDF_HOST_DEVICE bool | is_time_millis () const |
Check if the time is in milliseconds. More... | |
constexpr CUDF_HOST_DEVICE bool | is_time_micros () const |
Check if the time is in microseconds. More... | |
constexpr CUDF_HOST_DEVICE bool | is_time_nanos () const |
Check if the time is in nanoseconds. More... | |
constexpr CUDF_HOST_DEVICE bool | is_timestamp_millis () const |
Check if the timestamp is in milliseconds. More... | |
constexpr CUDF_HOST_DEVICE bool | is_timestamp_micros () const |
Check if the timestamp is in microseconds. More... | |
constexpr CUDF_HOST_DEVICE bool | is_timestamp_nanos () const |
Check if the timestamp is in nanoseconds. More... | |
constexpr CUDF_HOST_DEVICE int8_t | bit_width () const |
Get the bit width of the integer type. More... | |
constexpr bool | is_signed () const |
Check if the integer is signed. More... | |
constexpr int32_t | scale () const |
Get the scale of the decimal type. More... | |
constexpr CUDF_HOST_DEVICE int32_t | precision () const |
Get the precision of the decimal type. More... | |
Public Attributes | |
Type | type |
Logical type. | |
cuda::std::optional< DecimalType > | decimal_type |
Decimal type. | |
cuda::std::optional< TimeType > | time_type |
Time type. | |
cuda::std::optional< TimestampType > | timestamp_type |
Timestamp type. | |
cuda::std::optional< IntType > | int_type |
Integer type. | |
Struct that describes the logical type annotation.
Definition at line 253 of file parquet_schema.hpp.
|
inline |
|
inline |
Constructor for Decimal logical type.
dt | Decimal type |
Definition at line 295 of file parquet_schema.hpp.
|
inline |
Constructor for Time logical type.
tt | Time type |
Definition at line 302 of file parquet_schema.hpp.
|
inline |
Constructor for Timestamp logical type.
tst | Timestamp type |
Definition at line 309 of file parquet_schema.hpp.
|
inline |
Constructor for Integer logical type.
it | Integer type |
Definition at line 316 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the bit width of the integer type.
Definition at line 383 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the integer is signed.
Definition at line 393 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in microseconds.
Definition at line 333 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in milliseconds.
Definition at line 323 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in nanoseconds.
Definition at line 343 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in microseconds.
Definition at line 363 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in milliseconds.
Definition at line 353 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in nanoseconds.
Definition at line 373 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the precision of the decimal type.
Definition at line 410 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the scale of the decimal type.
Definition at line 400 of file parquet_schema.hpp.