Class DeltaBinaryDecoder.LongDeltaDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.DeltaBinaryDecoder.LongDeltaDecoder
-
- Enclosing class:
- DeltaBinaryDecoder
public static class DeltaBinaryDecoder.LongDeltaDecoder 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 LongDeltaDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidallocateDataArray()protected longloadIntBatch(java.nio.ByteBuffer buffer)if remaining data has been run out, load next pack from InputStream.protected voidreadHeader(java.nio.ByteBuffer buffer)longreadLong(java.nio.ByteBuffer buffer)protected longreadT(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, readInt, readShort, setType
-
-
-
-
Method Detail
-
readT
protected long readT(java.nio.ByteBuffer buffer)
if there's no decoded data left, decode next pack intodata.- Parameters:
buffer- ByteBuffer- Returns:
- long value
-
loadIntBatch
protected long loadIntBatch(java.nio.ByteBuffer buffer)
if remaining data has been run out, load next pack from InputStream.- Parameters:
buffer- ByteBuffer- Returns:
- long value
-
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
-
-