Class LongRangePartitioner

    • Constructor Detail

      • LongRangePartitioner

        public LongRangePartitioner​(int nbPartitions,
                                    List<Long> firstKeys)
    • 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