Class RegularDataDecoder.LongRegularDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder.LongRegularDecoder
-
- Enclosing class:
- RegularDataDecoder
public static class RegularDataDecoder.LongRegularDecoder extends RegularDataDecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder
RegularDataDecoder.IntRegularDecoder, RegularDataDecoder.LongRegularDecoder
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder
nextReadIndex, packNum, readIntTotalCount
-
-
Constructor Summary
Constructors Constructor Description LongRegularDecoder()
-
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 longloadWithBitmap(java.nio.ByteBuffer buffer)load the data with bitmap (when bitmap denote the element with false, load next element)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.RegularDataDecoder
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
-
loadWithBitmap
protected long loadWithBitmap(java.nio.ByteBuffer buffer)
load the data with bitmap (when bitmap denote the element with false, load next element)- Parameters:
buffer-- 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 classRegularDataDecoder
-
allocateDataArray
protected void allocateDataArray()
- Specified by:
allocateDataArrayin classRegularDataDecoder
-
readValue
protected void readValue(int i)
- Specified by:
readValuein classRegularDataDecoder
-
-