Package io.prestosql.operator.exchange
Class LocalPartitionGenerator
- java.lang.Object
-
- io.prestosql.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 int
getPartition(long rawHash)
int
getPartition(Page page, int position)
int
getPartitionCount()
long
getRawHash(Page page, int position)
-
-
-
Constructor Detail
-
LocalPartitionGenerator
public LocalPartitionGenerator(HashGenerator hashGenerator, int partitionCount)
-
-
Method Detail
-
getPartitionCount
public int getPartitionCount()
- Specified by:
getPartitionCount
in interfacePartitionFunction
-
getPartition
public int getPartition(Page page, int position)
- Specified by:
getPartition
in 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)
-
-