A data type representing a fixed-precision decimal.
More...
#include <type.h>
|
| | DecimalType (int32_t precision, int32_t scale) |
| | Construct a decimal type with the given precision and scale.
|
| |
|
int32_t | precision () const |
| | Get the precision (the number of decimal digits).
|
| |
|
int32_t | scale () const |
| | Get the scale (essentially, the number of decimal digits after the decimal point; precisely, the value is scaled by $$10^{-s}$$.).
|
| |
| TypeId | type_id () const override |
| | Get the type ID.
|
| |
| std::string | ToString () const override |
| | Get a user-readable string representation.
|
| |
| bool | is_primitive () const override |
| | Is this a primitive type (may not have child fields)?
|
| |
| bool | is_nested () const override |
| | Is this a nested type (may have child fields)?
|
| |
|
bool | is_struct () const |
| | Is this a struct type?
|
| |
|
bool | is_list () const |
| | Is this a list type?
|
| |
|
bool | is_map () const |
| | Is this a map type?
|
| |
|
bool | is_variant () const |
| | Is this a variant type?
|
| |
|
|
static constexpr const TypeId | kTypeId = TypeId::kDecimal |
| |
|
static constexpr const int32_t | kMaxPrecision = 38 |
| |
|
| bool | Equals (const Type &other) const override |
| | Compare two types for equality.
|
| |
A data type representing a fixed-precision decimal.
◆ DecimalType()
| iceberg::DecimalType::DecimalType |
( |
int32_t |
precision, |
|
|
int32_t |
scale |
|
) |
| |
Construct a decimal type with the given precision and scale.
- Exceptions
-
◆ Equals()
| bool iceberg::DecimalType::Equals |
( |
const Type & |
other | ) |
const |
|
overrideprotectedvirtual |
◆ ToString()
| std::string iceberg::DecimalType::ToString |
( |
| ) |
const |
|
overridevirtual |
◆ type_id()
| TypeId iceberg::DecimalType::type_id |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- iceberg/type.h
- iceberg/type.cc