public abstract class RegularDataDecoder extends Decoder
RegularDataEncoder.
RegularDataDecoder only supports integer and long values.RegularDataEncoder| Modifier and Type | Class and Description |
|---|---|
static class |
RegularDataDecoder.IntRegularDecoder |
static class |
RegularDataDecoder.LongRegularDecoder |
| Modifier and Type | Field and Description |
|---|---|
protected int |
nextReadIndex |
protected int |
packNum
data number in this pack.
|
protected int |
readIntTotalCount
the first value in one pack.
|
| Constructor and Description |
|---|
RegularDataDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
allocateDataArray() |
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 int readIntTotalCount
protected int nextReadIndex
protected int packNum
protected abstract void readHeader(ByteBuffer buffer) throws IOException
IOExceptionprotected abstract void allocateDataArray()
protected abstract void readValue(int i)
public boolean hasNext(ByteBuffer buffer) throws IOException
hasNext in class DecoderIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.