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

An unbound transform expression. More...

#include <term.h>

Inheritance diagram for iceberg::UnboundTransform:
iceberg::UnboundTerm< class BoundTransform > iceberg::Unbound< B > iceberg::Term iceberg::util::Formattable

Public Member Functions

std::string ToString () const override
 Get a user-readable string representation.
 
Result< std::shared_ptr< BoundTransform > > Bind (const Schema &schema, bool case_sensitive) const override
 Bind this expression to a concrete schema.
 
std::shared_ptr< NamedReferencereference () override
 Returns the underlying named reference for this unbound term.
 
const std::shared_ptr< Transform > & transform () const
 
Kind kind () const override
 Returns the kind of this term.
 
- Public Member Functions inherited from iceberg::UnboundTerm< class BoundTransform >
bool is_unbound () const override
 Returns whether this term is unbound.
 
- Public Member Functions inherited from iceberg::Unbound< B >
Result< std::shared_ptr< B > > Bind (const Schema &schema) const
 Overloaded Bind method that uses case-sensitive matching by default.
 

Static Public Member Functions

static Result< std::unique_ptr< UnboundTransform > > Make (std::shared_ptr< NamedReference > ref, std::shared_ptr< Transform > transform)
 Create an unbound transform.
 

Additional Inherited Members

- Public Types inherited from iceberg::UnboundTerm< class BoundTransform >
using BoundType = class BoundTransform
 
- Public Types inherited from iceberg::Term
enum class  Kind : uint8_t { kReference , kTransform , kExtract }
 

Detailed Description

An unbound transform expression.

Member Function Documentation

◆ Bind()

Result< std::shared_ptr< BoundTransform > > iceberg::UnboundTransform::Bind ( const Schema schema,
bool  case_sensitive 
) const
overridevirtual

Bind this expression to a concrete schema.

Parameters
schemaThe schema to bind against
case_sensitiveWhether field name matching should be case sensitive
Returns
A bound expression or an error if binding fails

Implements iceberg::Unbound< B >.

◆ kind()

Kind iceberg::UnboundTransform::kind ( ) const
inlineoverridevirtual

Returns the kind of this term.

Implements iceberg::Term.

◆ Make()

Result< std::unique_ptr< UnboundTransform > > iceberg::UnboundTransform::Make ( std::shared_ptr< NamedReference ref,
std::shared_ptr< Transform transform 
)
static

Create an unbound transform.

Parameters
refThe term to apply the transformation to
transformThe transformation function to apply

◆ reference()

std::shared_ptr< NamedReference > iceberg::UnboundTransform::reference ( )
inlineoverridevirtual

Returns the underlying named reference for this unbound term.

Implements iceberg::Unbound< B >.

◆ ToString()

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

Get a user-readable string representation.

Implements iceberg::util::Formattable.


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