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

Void transform that discards the input and always returns null. More...

#include <transform_function.h>

Inheritance diagram for iceberg::VoidTransform:
iceberg::TransformFunction

Public Member Functions

 VoidTransform (std::shared_ptr< Type > const &source_type)
 
Result< LiteralTransform (const Literal &literal) override
 Returns a null literal.
 
std::shared_ptr< TypeResultType () const override
 Returns the same type as source_type.
 
- Public Member Functions inherited from iceberg::TransformFunction
 TransformFunction (TransformType transform_type, std::shared_ptr< Type > source_type)
 
TransformType transform_type () const
 Get the transform type.
 
const std::shared_ptr< Type > & source_type () const
 Get the source type of transform function.
 

Static Public Member Functions

static Result< std::unique_ptr< TransformFunction > > Make (std::shared_ptr< Type > const &source_type)
 Create a VoidTransform.
 

Detailed Description

Void transform that discards the input and always returns null.

Constructor & Destructor Documentation

◆ VoidTransform()

iceberg::VoidTransform::VoidTransform ( std::shared_ptr< Type > const &  source_type)
explicit
Parameters
source_typeInput type (ignored).

Member Function Documentation

◆ Make()

Result< std::unique_ptr< TransformFunction > > iceberg::VoidTransform::Make ( std::shared_ptr< Type > const &  source_type)
static

Create a VoidTransform.

Parameters
source_typeInput type (ignored).
Returns
A Result containing the VoidTransform or an error.

◆ ResultType()

std::shared_ptr< Type > iceberg::VoidTransform::ResultType ( ) const
overridevirtual

Returns the same type as source_type.

Implements iceberg::TransformFunction.

◆ Transform()

Result< Literal > iceberg::VoidTransform::Transform ( const Literal literal)
overridevirtual

Returns a null literal.

Implements iceberg::TransformFunction.


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