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

An immutable map-like wrapper. More...

#include <struct_like.h>

Inheritance diagram for iceberg::MapLike:
iceberg::ArrowArrayMapLike iceberg::SimpleMapLike

Public Member Functions

virtual Result< ScalarGetKey (size_t pos) const =0
 Get the key at the given position.
 
virtual Result< ScalarGetValue (size_t pos) const =0
 Get the value at the given position.
 
virtual size_t size () const =0
 Get the number of entries in the map.
 

Detailed Description

An immutable map-like wrapper.

Member Function Documentation

◆ GetKey()

virtual Result< Scalar > iceberg::MapLike::GetKey ( size_t  pos) const
pure virtual

Get the key at the given position.

Parameters
posThe position of the key in the map.

Implemented in iceberg::ArrowArrayMapLike, and iceberg::SimpleMapLike.

◆ GetValue()

virtual Result< Scalar > iceberg::MapLike::GetValue ( size_t  pos) const
pure virtual

Get the value at the given position.

Parameters
posThe position of the value in the map.

Implemented in iceberg::ArrowArrayMapLike, and iceberg::SimpleMapLike.

◆ size()

virtual size_t iceberg::MapLike::size ( ) const
pure virtual

Get the number of entries in the map.

Implemented in iceberg::ArrowArrayMapLike, and iceberg::SimpleMapLike.


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