me.lemire.integercompression
Class S9

java.lang.Object
  extended by me.lemire.integercompression.S9

public final class S9
extends Object

This is a version of Simple9 optimized for NewPFOR, OptPFOR

Author:
Daniel Lemire

Constructor Summary
S9()
           
 
Method Summary
protected static int compress(int[] in, int currentPos, int inlength, int[] out, int tmpoutpos)
           
static int estimatecompress(int[] in, int currentPos, int inlength)
          Estimate size of the compressed output.
protected static void uncompress(int[] in, int tmpinpos, int inlength, int[] out, int currentPos, int outlength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S9

public S9()
Method Detail

estimatecompress

public static int estimatecompress(int[] in,
                                   int currentPos,
                                   int inlength)
Estimate size of the compressed output.

Parameters:
in - array to compress
currentPos - where to start reading
inlength - how many integers to read
Returns:
estimated size of the output (in 32-bit integers)

compress

protected static int compress(int[] in,
                              int currentPos,
                              int inlength,
                              int[] out,
                              int tmpoutpos)

uncompress

protected static void uncompress(int[] in,
                                 int tmpinpos,
                                 int inlength,
                                 int[] out,
                                 int currentPos,
                                 int outlength)


Copyright © 2013. All Rights Reserved.