public class BitPacking extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BitPacking.BitPackingReader
to read back what has been written with the corresponding writer
|
static class |
BitPacking.BitPackingWriter
to writes ints to a stream packed to only the needed bits.
|
| Modifier and Type | Method and Description |
|---|---|
static BitPacking.BitPackingReader |
createBitPackingReader(int bitLength,
InputStream in,
long valueCount) |
static BitPacking.BitPackingWriter |
getBitPackingWriter(int bitLength,
OutputStream out) |
public static BitPacking.BitPackingWriter getBitPackingWriter(int bitLength, OutputStream out)
bitLength - the width in bits of the integers to writeout - the stream to write the bytes topublic static BitPacking.BitPackingReader createBitPackingReader(int bitLength, InputStream in, long valueCount)
bitLength - the width in bits of the integers to readin - the stream to read the bytes fromvalueCount - not sureCopyright © 2018 The Apache Software Foundation. All rights reserved.