|
iceberg-cpp
|
Year transform that extracts the number of years from timestamp inputs since the epoch. More...
#include <transform_function.h>
Public Member Functions | |
| YearTransform (std::shared_ptr< Type > const &source_type) | |
| Result< Literal > | Transform (const Literal &literal) override |
| Extract a date or timestamp year, as years from 1970. | |
| std::shared_ptr< Type > | ResultType () const override |
| Returns INT32 as the output 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 YearTransform. | |
Year transform that extracts the number of years from timestamp inputs since the epoch.
|
explicit |
| source_type | Must be a timestamp type. |
|
static |
Create a YearTransform.
| source_type | Type of the input data. |
|
overridevirtual |
Returns INT32 as the output type.
Implements iceberg::TransformFunction.
Extract a date or timestamp year, as years from 1970.
Implements iceberg::TransformFunction.