|
iceberg-cpp
|
#include <nlohmann/json_fwd.hpp>#include "iceberg/expression/expression.h"#include "iceberg/iceberg_export.h"#include "iceberg/result.h"#include "iceberg/type_fwd.h"Go to the source code of this file.
Functions | |
| Result< Expression::Operation > | iceberg::OperationTypeFromJson (const nlohmann::json &json) |
| Converts an operation type string to an Expression::Operation. | |
| nlohmann::json | iceberg::ToJson (Expression::Operation op) |
| Converts an Expression::Operation to its json representation. | |
| Result< std::shared_ptr< Expression > > | iceberg::ExpressionFromJson (const nlohmann::json &json, const Schema *schema=nullptr) |
| Deserializes a JSON object into an Expression. | |
| Result< nlohmann::json > | iceberg::ToJson (const Expression &expr) |
| Serializes an Expression into its JSON representation. | |
| Result< std::unique_ptr< NamedReference > > | iceberg::NamedReferenceFromJson (const nlohmann::json &json) |
| Deserializes a JSON object into a NamedReference. | |
| nlohmann::json | iceberg::ToJson (const NamedReference &ref) |
| Serializes a NamedReference into its JSON representation. | |
| nlohmann::json | iceberg::ToJson (const UnboundTransform &transform) |
| Serializes an UnboundTransform into its JSON representation. | |
| Result< std::unique_ptr< UnboundTransform > > | iceberg::UnboundTransformFromJson (const nlohmann::json &json) |
| Deserializes a JSON object into an UnboundTransform. | |
| Result< nlohmann::json > | iceberg::ToJson (const Literal &literal) |
| Serializes a Literal into its JSON representation. | |
| Result< Literal > | iceberg::LiteralFromJson (const nlohmann::json &json) |
| Deserializes a JSON value into a Literal. | |
| Result< Literal > | iceberg::LiteralFromJson (const nlohmann::json &json, const Type *type) |
| Deserializes a JSON value into a Literal with optional type context. | |
| Result< nlohmann::json > | iceberg::ToJson (const UnboundPredicate &pred) |
| Serializes an UnboundPredicate into its JSON representation. | |
| nlohmann::json | iceberg::ToJson (const BoundReference &ref) |
| Serializes a BoundReference into its JSON representation (field name string). | |
| nlohmann::json | iceberg::ToJson (const BoundTransform &transform) |
| Serializes a BoundTransform into its JSON representation. | |
| Result< nlohmann::json > | iceberg::ToJson (const BoundPredicate &pred) |
| Serializes a BoundPredicate into its JSON representation. | |
| Result< std::unique_ptr< UnboundPredicate > > | iceberg::UnboundPredicateFromJson (const nlohmann::json &json, const Schema *schema=nullptr) |
| Deserializes a JSON object into an UnboundPredicate. | |
| Result< nlohmann::json > | iceberg::ToJson (const Term &term) |
| Serializes a Term into its JSON representation. | |
| bool | iceberg::IsUnaryOperation (Expression::Operation op) |
| Check if an operation is a unary predicate. | |
| bool | iceberg::IsSetOperation (Expression::Operation op) |
| Check if an operation is a set predicate. | |
JSON serialization and deserialization for expressions.
| ICEBERG_EXPORT Result< std::shared_ptr< Expression > > iceberg::ExpressionFromJson | ( | const nlohmann::json & | json, |
| const Schema * | schema = nullptr |
||
| ) |
Deserializes a JSON object into an Expression.
| json | A JSON object representing an expression |
| schema | Optional schema used to bind field references and coerce literal types. |
| ICEBERG_EXPORT Result< Literal > iceberg::LiteralFromJson | ( | const nlohmann::json & | json | ) |
Deserializes a JSON value into a Literal.
| json | A JSON value representing a literal. |
| ICEBERG_EXPORT Result< Literal > iceberg::LiteralFromJson | ( | const nlohmann::json & | json, |
| const Type * | type | ||
| ) |
Deserializes a JSON value into a Literal with optional type context.
| json | A JSON value representing a literal. |
| type | Optional target type used to guide parsing. |
| ICEBERG_EXPORT Result< std::unique_ptr< NamedReference > > iceberg::NamedReferenceFromJson | ( | const nlohmann::json & | json | ) |
Deserializes a JSON object into a NamedReference.
| json | A JSON object representing a named reference |
| ICEBERG_EXPORT Result< Expression::Operation > iceberg::OperationTypeFromJson | ( | const nlohmann::json & | json | ) |
Converts an operation type string to an Expression::Operation.
| typeStr | The operation type string |
| ICEBERG_EXPORT Result< nlohmann::json > iceberg::ToJson | ( | const Expression & | expr | ) |
Serializes an Expression into its JSON representation.
| expr | The expression to serialize |
| ICEBERG_EXPORT Result< nlohmann::json > iceberg::ToJson | ( | const Literal & | literal | ) |
Serializes a Literal into its JSON representation.
| literal | The literal to serialize |
| ICEBERG_EXPORT nlohmann::json iceberg::ToJson | ( | const NamedReference & | ref | ) |
Serializes a NamedReference into its JSON representation.
| ref | The named reference to serialize |
| ICEBERG_EXPORT Result< nlohmann::json > iceberg::ToJson | ( | const Term & | term | ) |
Serializes a Term into its JSON representation.
| term | The term to serialize (NamedReference or UnboundTransform) |
| ICEBERG_EXPORT Result< nlohmann::json > iceberg::ToJson | ( | const UnboundPredicate & | pred | ) |
Serializes an UnboundPredicate into its JSON representation.
| pred | The unbound predicate to serialize |
| ICEBERG_EXPORT nlohmann::json iceberg::ToJson | ( | const UnboundTransform & | transform | ) |
Serializes an UnboundTransform into its JSON representation.
| transform | The unbound transform to serialize |
| ICEBERG_EXPORT nlohmann::json iceberg::ToJson | ( | Expression::Operation | op | ) |
Converts an Expression::Operation to its json representation.
| op | The operation to convert |
| ICEBERG_EXPORT Result< std::unique_ptr< UnboundPredicate > > iceberg::UnboundPredicateFromJson | ( | const nlohmann::json & | json, |
| const Schema * | schema = nullptr |
||
| ) |
Deserializes a JSON object into an UnboundPredicate.
| json | A JSON object representing an unbound predicate |
| schema | Optional schema used to resolve literal types. |
| ICEBERG_EXPORT Result< std::unique_ptr< UnboundTransform > > iceberg::UnboundTransformFromJson | ( | const nlohmann::json & | json | ) |
Deserializes a JSON object into an UnboundTransform.
| json | A JSON object representing an unbound transform |