Class DeltaBinaryDecoder.IntDeltaDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder.IntDeltaDecoder
-
- Enclosing class:
- DeltaBinaryDecoder
public static class DeltaBinaryDecoder.IntDeltaDecoder extends DeltaBinaryDecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder
DeltaBinaryDecoder.IntDeltaDecoder, DeltaBinaryDecoder.LongDeltaDecoder
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder
count, deltaBuf, encodingLength, nextReadIndex, packNum, packWidth, readIntTotalCount
-
-
Constructor Summary
Constructors Constructor Description IntDeltaDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidallocateDataArray()protected intloadIntBatch(java.nio.ByteBuffer buffer)if remaining data has been run out, load next pack from InputStream.protected voidreadHeader(java.nio.ByteBuffer buffer)intreadInt(java.nio.ByteBuffer buffer)protected intreadT(java.nio.ByteBuffer buffer)if there's no decoded data left, decode next pack intodata.protected voidreadValue(int i)voidreset()-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder
ceil, hasNext
-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.Decoder
getDecoderByType, getType, readBigDecimal, readBinary, readBoolean, readDouble, readFloat, readLong, readShort, setType
-
-
-
-
Method Detail
-
readT
protected int readT(java.nio.ByteBuffer buffer)
if there's no decoded data left, decode next pack intodata.- Parameters:
buffer- ByteBuffer- Returns:
- int
-
loadIntBatch
protected int loadIntBatch(java.nio.ByteBuffer buffer)
if remaining data has been run out, load next pack from InputStream.- Parameters:
buffer- ByteBuffer- Returns:
- int
-
readHeader
protected void readHeader(java.nio.ByteBuffer buffer)
- Specified by:
readHeaderin classDeltaBinaryDecoder
-
allocateDataArray
protected void allocateDataArray()
- Specified by:
allocateDataArrayin classDeltaBinaryDecoder
-
readValue
protected void readValue(int i)
- Specified by:
readValuein classDeltaBinaryDecoder
-
-