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 242 of file parquet_schema.hpp.
|
inline |
|
inline |
Constructor for Decimal logical type.
| dt | Decimal type |
Definition at line 284 of file parquet_schema.hpp.
|
inline |
Constructor for Time logical type.
| tt | Time type |
Definition at line 291 of file parquet_schema.hpp.
|
inline |
Constructor for Timestamp logical type.
| tst | Timestamp type |
Definition at line 298 of file parquet_schema.hpp.
|
inline |
Constructor for Integer logical type.
| it | Integer type |
Definition at line 305 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the bit width of the integer type.
Definition at line 372 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the integer is signed.
Definition at line 382 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in microseconds.
Definition at line 322 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in milliseconds.
Definition at line 312 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the time is in nanoseconds.
Definition at line 332 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in microseconds.
Definition at line 352 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in milliseconds.
Definition at line 342 of file parquet_schema.hpp.
|
inlineconstexpr |
Check if the timestamp is in nanoseconds.
Definition at line 362 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the precision of the decimal type.
Definition at line 399 of file parquet_schema.hpp.
|
inlineconstexpr |
Get the scale of the decimal type.
Definition at line 389 of file parquet_schema.hpp.