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

A data type representing a fixed-length bytestring. More...

#include <type.h>

Inheritance diagram for iceberg::FixedType:
iceberg::PrimitiveType iceberg::Type iceberg::util::Formattable

Public Member Functions

 FixedType (int32_t length)
 Construct a fixed type with the given length.
 
int32_t length () const
 The length (the number of bytes to store).
 
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::PrimitiveType
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)?
 

Static Public Attributes

static constexpr const TypeId kTypeId = TypeId::kFixed
 

Protected Member Functions

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

Detailed Description

A data type representing a fixed-length bytestring.

Member Function Documentation

◆ Equals()

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

Compare two types for equality.

Implements iceberg::Type.

◆ ToString()

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

Get a user-readable string representation.

Implements iceberg::util::Formattable.

◆ type_id()

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

Get the type ID.

Implements iceberg::Type.


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