Package io.trino.operator
Class BucketPartitionFunction
- java.lang.Object
-
- io.trino.operator.BucketPartitionFunction
-
- All Implemented Interfaces:
PartitionFunction
public class BucketPartitionFunction extends Object implements PartitionFunction
-
-
Constructor Summary
Constructors Constructor Description BucketPartitionFunction(BucketFunction bucketFunction, int[] bucketToPartition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPartition(Page functionArguments, int position)intgetPartitionCount()
-
-
-
Constructor Detail
-
BucketPartitionFunction
public BucketPartitionFunction(BucketFunction bucketFunction, int[] bucketToPartition)
-
-
Method Detail
-
getPartitionCount
public int getPartitionCount()
- Specified by:
getPartitionCountin interfacePartitionFunction
-
getPartition
public int getPartition(Page functionArguments, int position)
- Specified by:
getPartitionin interfacePartitionFunction- Parameters:
functionArguments- the arguments to bucketing function in order (no extra columns)
-
-