Class RleIntDiffEncoder

  • All Implemented Interfaces:
    IntWriteEncoder

    public class RleIntDiffEncoder
    extends Encoder
    implements IntWriteEncoder
    A combination of IntDiffEncoder and RleEncoder. Basically first writes the IntDiffEncoder and then counts duplicate diffs using RleEncoding. Encodes the values [1,1,1,2,3,4,5,6] as [1,1,0,2,1,5] (RLE([1,0,0,1,1,1,1,1]) ⇒ RleIntDiff[1,1,0,2,1,5])
    • Constructor Detail

      • RleIntDiffEncoder

        public RleIntDiffEncoder​(int start)