public class LocalPartitionGenerator extends Object implements PartitionFunction
| Constructor and Description |
|---|
LocalPartitionGenerator(HashGenerator hashGenerator,
int partitionCount) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPartition(long rawHash) |
int |
getPartition(Page page,
int position) |
int |
getPartitionCount() |
long |
getRawHash(Page page,
int position) |
public LocalPartitionGenerator(HashGenerator hashGenerator, int partitionCount)
public int getPartitionCount()
getPartitionCount in interface PartitionFunctionpublic int getPartition(Page page, int position)
getPartition in interface PartitionFunctionpublic long getRawHash(Page page, int position)
public int getPartition(long rawHash)
Copyright © 2012–2019. All rights reserved.