|
iceberg-cpp
|
An accessor for a struct-like object. More...
#include <struct_like.h>
Public Member Functions | |
| StructLikeAccessor (std::shared_ptr< Type > type, std::span< const size_t > position_path) | |
| Result< Scalar > | Get (const StructLike &struct_like) const |
| Get the scalar value at the given position. | |
| Result< Literal > | GetLiteral (const StructLike &struct_like) const |
| Get the literal value at the given position. | |
| const Type & | type () const |
| Get the type of the value that this accessor is bound to. | |
| const std::vector< size_t > & | position_path () const |
| Get the position path of the value that this accessor bounded to. | |
An accessor for a struct-like object.
| Result< Literal > iceberg::StructLikeAccessor::GetLiteral | ( | const StructLike & | struct_like | ) | const |
Get the literal value at the given position.