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

A data type representing a timestamp as microseconds since the epoch in UTC. A time zone or offset is not stored. More...

#include <type.h>

Inheritance diagram for iceberg::TimestampTzType:
iceberg::TimestampBase iceberg::PrimitiveType iceberg::Type iceberg::util::Formattable

Public Member Functions

bool is_zoned () const override
 Is this type zoned or naive?
 
TimeUnit time_unit () const override
 The time resolution.
 
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::kTimestampTz
 

Protected Member Functions

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

Detailed Description

A data type representing a timestamp as microseconds since the epoch in UTC. A time zone or offset is not stored.

Member Function Documentation

◆ Equals()

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

Compare two types for equality.

Implements iceberg::Type.

◆ is_zoned()

bool iceberg::TimestampTzType::is_zoned ( ) const
overridevirtual

Is this type zoned or naive?

Implements iceberg::TimestampBase.

◆ time_unit()

TimeUnit iceberg::TimestampTzType::time_unit ( ) const
overridevirtual

The time resolution.

Implements iceberg::TimestampBase.

◆ ToString()

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

Get a user-readable string representation.

Implements iceberg::util::Formattable.

◆ type_id()

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

Get the type ID.

Implements iceberg::Type.


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