me.lemire.integercompression
Class S9
java.lang.Object
me.lemire.integercompression.S9
public final class S9
- extends Object
This is a version of Simple9 optimized for NewPFOR, OptPFOR
- Author:
- Daniel Lemire
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 |
S9
public S9()
estimatecompress
public static int estimatecompress(int[] in,
int currentPos,
int inlength)
- Estimate size of the compressed output.
- Parameters:
in
- array to compresscurrentPos
- where to start readinginlength
- 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.