|
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, std::vector< bool > is_optional) | |
| StructLikeAccessor (const StructLikeAccessor &)=delete | |
| StructLikeAccessor & | operator= (const StructLikeAccessor &)=delete |
| StructLikeAccessor (StructLikeAccessor &&)=delete | |
| StructLikeAccessor & | operator= (StructLikeAccessor &&)=delete |
| Result< Scalar > | Get (const StructLike &struct_like) const |
| Get the scalar value at the given position. A null optional parent returns monostate; a null required field is an error. | |
| 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 is bound 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.