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

Interface for a data type for a field. More...

#include <type.h>

Inheritance diagram for iceberg::Type:
iceberg::util::Formattable iceberg::NestedType iceberg::PrimitiveType iceberg::ListType iceberg::MapType iceberg::StructType iceberg::BinaryType iceberg::BooleanType iceberg::DateType iceberg::DecimalType iceberg::DoubleType iceberg::FixedType iceberg::FloatType iceberg::IntType iceberg::LongType iceberg::StringType iceberg::TimeType iceberg::TimestampBase iceberg::UuidType

Public Member Functions

virtual TypeId type_id () const =0
 Get the type ID.
 
virtual bool is_primitive () const =0
 Is this a primitive type (may not have child fields)?
 
virtual bool is_nested () const =0
 Is this a nested type (may have child fields)?
 
- Public Member Functions inherited from iceberg::util::Formattable
virtual std::string ToString () const =0
 Get a user-readable string representation.
 

Protected Member Functions

virtual bool Equals (const Type &other) const =0
 Compare two types for equality.
 

Friends

bool operator== (const Type &lhs, const Type &rhs)
 Compare two types for equality.
 

Detailed Description

Interface for a data type for a field.

Member Function Documentation

◆ Equals()

virtual bool iceberg::Type::Equals ( const Type other) const
protectedpure virtual

◆ is_nested()

virtual bool iceberg::Type::is_nested ( ) const
pure virtual

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

Implemented in iceberg::PrimitiveType, and iceberg::NestedType.

◆ is_primitive()

virtual bool iceberg::Type::is_primitive ( ) const
pure virtual

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

Implemented in iceberg::PrimitiveType, and iceberg::NestedType.

◆ type_id()

virtual TypeId iceberg::Type::type_id ( ) const
pure virtual

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