iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::StructLikeAccessor Class Reference

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< ScalarGet (const StructLike &struct_like) const
 Get the scalar value at the given position.
 
Result< LiteralGetLiteral (const StructLike &struct_like) const
 Get the literal value at the given position.
 
const Typetype () 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.
 

Detailed Description

An accessor for a struct-like object.

Member Function Documentation

◆ GetLiteral()

Result< Literal > iceberg::StructLikeAccessor::GetLiteral ( const StructLike struct_like) const

Get the literal value at the given position.

Returns
The literal value at the given position, or an error if it is not a primitive type.

The documentation for this class was generated from the following files: