|
iceberg-cpp
|
Functions | |
| ICEBERG_EXPORT const std::shared_ptr< BooleanType > & | iceberg::boolean () |
| Return a BooleanType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< IntType > & | iceberg::int32 () |
| Return an IntType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< LongType > & | iceberg::int64 () |
| Return a LongType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< FloatType > & | iceberg::float32 () |
| Return a FloatType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< DoubleType > & | iceberg::float64 () |
| Return a DoubleType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< DateType > & | iceberg::date () |
| Return a DateType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< TimeType > & | iceberg::time () |
| Return a TimeType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< TimestampType > & | iceberg::timestamp () |
| Return a TimestampType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< TimestampTzType > & | iceberg::timestamp_tz () |
| Return a TimestampTzType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< TimestampNsType > & | iceberg::timestamp_ns () |
| Return a TimestampNsType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< TimestampTzNsType > & | iceberg::timestamptz_ns () |
| Return a TimestampTzNsType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< BinaryType > & | iceberg::binary () |
| Return a BinaryType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< StringType > & | iceberg::string () |
| Return a StringType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< UuidType > & | iceberg::uuid () |
| Return a UuidType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< UnknownType > & | iceberg::unknown () |
| Return an UnknownType instance. | |
| ICEBERG_EXPORT const std::shared_ptr< VariantType > & | iceberg::variant () |
| Return a VariantType instance. | |
| const std::shared_ptr< GeometryType > & | iceberg::geometry () |
| Return the default GeometryType instance. | |
| const std::shared_ptr< GeographyType > & | iceberg::geography () |
| Return the default GeographyType instance. | |
| std::shared_ptr< DecimalType > | iceberg::decimal (int32_t precision, int32_t scale) |
| Create a DecimalType with the given precision and scale. | |
| std::shared_ptr< FixedType > | iceberg::fixed (int32_t length) |
| Create a FixedType with the given length. | |
| std::shared_ptr< GeometryType > | iceberg::geometry (std::string crs) |
| Create a GeometryType with the given CRS. | |
| std::shared_ptr< GeographyType > | iceberg::geography (std::string crs) |
| Create a GeographyType with the given CRS. | |
| std::shared_ptr< GeographyType > | iceberg::geography (std::string crs, EdgeAlgorithm algorithm) |
| Create a GeographyType with the given CRS and edge algorithm. | |
| std::shared_ptr< StructType > | iceberg::struct_ (std::vector< SchemaField > fields) |
| Create a StructType with the given fields. | |
| std::shared_ptr< ListType > | iceberg::list (SchemaField element) |
| Create a ListType with the given element field. | |
| std::shared_ptr< MapType > | iceberg::map (SchemaField key, SchemaField value) |
| Create a MapType with the given key and value fields. | |
Factory functions for creating data types
| ICEBERG_EXPORT std::shared_ptr< DecimalType > iceberg::decimal | ( | int32_t | precision, |
| int32_t | scale | ||
| ) |
Create a DecimalType with the given precision and scale.
| precision | The number of decimal digits (max 38). |
| scale | The number of decimal digits after the decimal point. |
| IcebergError | if precision is outside the supported range. |
| ICEBERG_EXPORT std::shared_ptr< FixedType > iceberg::fixed | ( | int32_t | length | ) |
Create a FixedType with the given length.
| length | The number of bytes to store (must be >= 0). |
| IcebergError | if length is negative. |
| ICEBERG_EXPORT std::shared_ptr< GeographyType > iceberg::geography | ( | std::string | crs | ) |
Create a GeographyType with the given CRS.
| IcebergError | if crs is empty. |
| ICEBERG_EXPORT std::shared_ptr< GeographyType > iceberg::geography | ( | std::string | crs, |
| EdgeAlgorithm | algorithm | ||
| ) |
Create a GeographyType with the given CRS and edge algorithm.
| IcebergError | if crs is empty. |
| ICEBERG_EXPORT std::shared_ptr< GeometryType > iceberg::geometry | ( | std::string | crs | ) |
Create a GeometryType with the given CRS.
| IcebergError | if crs is empty. |
| ICEBERG_EXPORT std::shared_ptr< ListType > iceberg::list | ( | SchemaField | element | ) |
Create a ListType with the given element field.
| element | The element field of the list. |
| IcebergError | if element's name is not "element". |
| ICEBERG_EXPORT std::shared_ptr< MapType > iceberg::map | ( | SchemaField | key, |
| SchemaField | value | ||
| ) |
Create a MapType with the given key and value fields.
| key | The key field of the map. |
| value | The value field of the map. |
| IcebergError | if the key or value field has an invalid name. |
| ICEBERG_EXPORT std::shared_ptr< StructType > iceberg::struct_ | ( | std::vector< SchemaField > | fields | ) |
Create a StructType with the given fields.
| fields | The fields of the struct. |