42 const Literal::Value& value);
55 std::span<const uint8_t> data);
62 std::span<const uint8_t> data);
Conversion utilities for primitive types.
Definition conversions.h:35
static Result< std::vector< uint8_t > > ToBytes(const PrimitiveType &type, const Literal::Value &value)
Serializes a raw literal value into a byte vector according to its type.
static Result< Literal > FromBytes(std::shared_ptr< PrimitiveType > type, std::span< const uint8_t > data)
Deserializes a span of bytes into a complete Literal object.
static Result< Literal::Value > FromBytes(const PrimitiveType &type, std::span< const uint8_t > data)
Deserializes a span of bytes into a raw literal value based on the given type.
static Result< std::vector< uint8_t > > ToBytes(const Literal &literal)
Serializes a complete Literal object into a byte vector.
Literal is a literal value that is associated with a primitive type.
Definition literal.h:42
A data type that does not have child fields.
Definition type.h:78
Define typed literal values used by expressions.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.