public abstract class DeltaBinaryDecoder extends Decoder
DeltaBinaryEncoder.DeltaBinaryDecoder just supports integer and long values.DeltaBinaryEncoder| Modifier and Type | Class and Description |
|---|---|
static class |
DeltaBinaryDecoder.IntDeltaDecoder |
static class |
DeltaBinaryDecoder.LongDeltaDecoder |
| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
protected byte[] |
deltaBuf |
protected int |
encodingLength
how many bytes data takes after encoding.
|
protected int |
nextReadIndex |
protected int |
packNum
data number in this pack.
|
protected int |
packWidth
max bit length of all value in a pack.
|
protected int |
readIntTotalCount
the first value in one pack.
|
| Constructor and Description |
|---|
DeltaBinaryDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
allocateDataArray() |
protected int |
ceil(int v)
calculate the bytes length containing v bits.
|
boolean |
hasNext(ByteBuffer buffer) |
protected abstract void |
readHeader(ByteBuffer buffer) |
protected abstract void |
readValue(int i) |
getDecoderByType, getType, readBigDecimal, readBinary, readBoolean, readDouble, readFloat, readInt, readLong, readShort, reset, setTypeprotected long count
protected byte[] deltaBuf
protected int readIntTotalCount
protected int nextReadIndex
protected int packWidth
protected int packNum
protected int encodingLength
protected abstract void readHeader(ByteBuffer buffer) throws IOException
IOExceptionprotected abstract void allocateDataArray()
protected abstract void readValue(int i)
protected int ceil(int v)
v - - number of bitspublic boolean hasNext(ByteBuffer buffer) throws IOException
hasNext in class DecoderIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.