Package io.trino.operator.exchange
Class LocalPartitionGenerator
- java.lang.Object
-
- io.trino.operator.exchange.LocalPartitionGenerator
-
- All Implemented Interfaces:
PartitionFunction
public class LocalPartitionGenerator extends Object implements PartitionFunction
-
-
Constructor Summary
Constructors Constructor Description LocalPartitionGenerator(HashGenerator hashGenerator, int partitionCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPartition(long rawHash)intgetPartition(Page page, int position)intgetPartitionCount()longgetRawHash(Page page, int position)
-
-
-
Constructor Detail
-
LocalPartitionGenerator
public LocalPartitionGenerator(HashGenerator hashGenerator, int partitionCount)
-
-
Method Detail
-
getPartitionCount
public int getPartitionCount()
- Specified by:
getPartitionCountin interfacePartitionFunction
-
getPartition
public int getPartition(Page page, int position)
- Specified by:
getPartitionin interfacePartitionFunction- Parameters:
page- the arguments to bucketing function in order (no extra columns)
-
getRawHash
public long getRawHash(Page page, int position)
-
getPartition
public int getPartition(long rawHash)
-
-