|
iceberg-cpp
|
Bucket transform that hashes input values into N buckets. More...
#include <transform_function.h>
Public Member Functions | |
| BucketTransform (std::shared_ptr< Type > const &source_type, int32_t num_buckets) | |
| Result< Literal > | Transform (const Literal &literal) override |
| Applies the bucket hash function to the input Literal. | |
| std::shared_ptr< Type > | ResultType () const override |
| Returns INT32 as the output type. | |
| int32_t | num_buckets () const |
| Returns the number of buckets. | |
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, int32_t num_buckets) |
| Create a BucketTransform. | |
Bucket transform that hashes input values into N buckets.
| iceberg::BucketTransform::BucketTransform | ( | std::shared_ptr< Type > const & | source_type, |
| int32_t | num_buckets | ||
| ) |
| source_type | Type of the input data. |
| num_buckets | Number of buckets to hash into. |
|
static |
Create a BucketTransform.
| source_type | Type of the input data. |
| num_buckets | Number of buckets to hash into. |
|
overridevirtual |
Returns INT32 as the output type.
Implements iceberg::TransformFunction.
Applies the bucket hash function to the input Literal.
Implements iceberg::TransformFunction.