|
iceberg-cpp
|
#include <cstdint>#include <memory>#include <string_view>#include <utility>#include <variant>#include "iceberg/expression/literal.h"#include "iceberg/iceberg_export.h"#include "iceberg/result.h"#include "iceberg/type_fwd.h"#include "iceberg/util/formattable.h"Go to the source code of this file.
Classes | |
| class | iceberg::Transform |
| Represents a transform used in partitioning or sorting in Iceberg. More... | |
| class | iceberg::TransformFunction |
| A transform function used for partitioning. More... | |
Enumerations | |
| enum class | iceberg::TransformType { kUnknown , kIdentity , kBucket , kTruncate , kYear , kMonth , kDay , kHour , kVoid } |
| Transform types used for partitioning. More... | |
Functions | |
| ICEBERG_EXPORT constexpr std::string_view | iceberg::TransformTypeToString (TransformType type) |
| Get the relative transform name. | |
| Result< std::shared_ptr< Transform > > | iceberg::TransformFromString (std::string_view transform_str) |
| Converts a string representation of a transform into a Transform instance. | |
|
strong |
Transform types used for partitioning.
| ICEBERG_EXPORT Result< std::shared_ptr< Transform > > iceberg::TransformFromString | ( | std::string_view | transform_str | ) |
Converts a string representation of a transform into a Transform instance.
This function parses the provided string to identify the corresponding transform type (e.g., "identity", "year", "bucket[16]"), and creates a shared pointer to the corresponding Transform object. It supports both simple transforms (like "identity") and parameterized transforms (like "bucket[16]" or "truncate[4]").
| transform_str | The string representation of the transform type. |