Class LongRangePartitioner
- java.lang.Object
-
- org.openrefine.runners.local.pll.partitioning.RangePartitioner<Long>
-
- org.openrefine.runners.local.pll.partitioning.LongRangePartitioner
-
- All Implemented Interfaces:
Partitioner<Long>
public class LongRangePartitioner extends RangePartitioner<Long> implements Partitioner<Long>
A range partitioner for long-keyed PLLs, for convenience.- Author:
- Antonin Delpeuch
-
-
Field Summary
-
Fields inherited from class org.openrefine.runners.local.pll.partitioning.RangePartitioner
comparator, firstKeys, numPartitions
-
-
Constructor Summary
Constructors Constructor Description LongRangePartitioner(int nbPartitions, List<Long> firstKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongRangePartitioner
shiftKeys(long offset)
Returns a new version of this partitioner assuming that all keys have been shifted by the given offset.-
Methods inherited from class org.openrefine.runners.local.pll.partitioning.RangePartitioner
getComparator, getFirstKeys, getPartition, numPartitions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrefine.runners.local.pll.partitioning.Partitioner
getPartition, numPartitions
-
-
-
-
Method Detail
-
shiftKeys
public LongRangePartitioner shiftKeys(long offset)
Returns a new version of this partitioner assuming that all keys have been shifted by the given offset.- Parameters:
offset
- the summand applied to all keys
-
-