Class RegularDataDecoder.IntRegularDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder
-
- org.apache.iotdb.tsfile.encoding.decoder.RegularDataDecoder.IntRegularDecoder
-
- Enclosing class:
- RegularDataDecoder
public static class RegularDataDecoder.IntRegularDecoder 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 IntRegularDecoder()
-
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 intloadWithBitmap(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)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.RegularDataDecoder
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:
- long value
-
loadWithBitmap
protected int 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 int loadIntBatch(java.nio.ByteBuffer buffer)
if remaining data has been run out, load next pack from InputStream.- Parameters:
buffer- ByteBuffer- Returns:
- int 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
-
-