iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
iceberg::VariantType Class Reference

A semi-structured type whose structure may vary across rows. More...

#include <type.h>

Inheritance diagram for iceberg::VariantType:
iceberg::Type iceberg::util::Formattable

Public Member Functions

bool is_primitive () const override
 Is this a primitive type (may not have child fields)?
 
bool is_nested () const override
 Is this a nested type (may have child fields)?
 
TypeId type_id () const override
 Get the type ID.
 
std::string ToString () const override
 Get a user-readable string representation.
 
- Public Member Functions inherited from iceberg::Type
bool is_struct () const
 Is this a struct type?
 
bool is_list () const
 Is this a list type?
 
bool is_map () const
 Is this a map type?
 
bool is_variant () const
 Is this a variant type?
 

Static Public Attributes

static constexpr const TypeId kTypeId = TypeId::kVariant
 

Protected Member Functions

bool Equals (const Type &other) const override
 Compare two types for equality.
 

Detailed Description

A semi-structured type whose structure may vary across rows.

Member Function Documentation

◆ Equals()

bool iceberg::VariantType::Equals ( const Type other) const
overrideprotectedvirtual

Compare two types for equality.

Implements iceberg::Type.

◆ is_nested()

bool iceberg::VariantType::is_nested ( ) const
inlineoverridevirtual

Is this a nested type (may have child fields)?

Implements iceberg::Type.

◆ is_primitive()

bool iceberg::VariantType::is_primitive ( ) const
inlineoverridevirtual

Is this a primitive type (may not have child fields)?

Implements iceberg::Type.

◆ ToString()

std::string iceberg::VariantType::ToString ( ) const
overridevirtual

Get a user-readable string representation.

Implements iceberg::util::Formattable.

◆ type_id()

TypeId iceberg::VariantType::type_id ( ) const
overridevirtual

Get the type ID.

Implements iceberg::Type.


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