iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
iceberg::PartitionField Class Reference

a field with its transform. More...

#include <partition_field.h>

Inheritance diagram for iceberg::PartitionField:
iceberg::util::Formattable

Public Member Functions

 PartitionField (int32_t source_id, int32_t field_id, std::string name, std::shared_ptr< Transform > transform)
 Construct a field.
 
int32_t source_id () const
 Get the source field ID.
 
int32_t field_id () const
 Get the partition field ID.
 
std::string_view name () const
 Get the partition field name.
 
std::shared_ptr< Transform > const & transform () const
 Get the transform type.
 
std::string ToString () const override
 Get a user-readable string representation.
 

Friends

bool operator== (const PartitionField &lhs, const PartitionField &rhs)
 

Detailed Description

a field with its transform.

Constructor & Destructor Documentation

◆ PartitionField()

iceberg::PartitionField::PartitionField ( int32_t  source_id,
int32_t  field_id,
std::string  name,
std::shared_ptr< Transform transform 
)

Construct a field.

Parameters
[in]source_idThe source field ID.
[in]field_idThe partition field ID.
[in]nameThe partition field name.
[in]transformThe transform function.

Member Function Documentation

◆ ToString()

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

Get a user-readable string representation.

Implements iceberg::util::Formattable.


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