Class Decoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- Direct Known Subclasses:
BitmapDecoder,DeltaBinaryDecoder,DictionaryDecoder,DoubleRLBEDecoder,FloatDecoder,FloatRLBEDecoder,GorillaDecoderV1,GorillaDecoderV2,IntRLBEDecoder,IntZigzagDecoder,LongRLBEDecoder,LongZigzagDecoder,PlainDecoder,RegularDataDecoder,RleDecoder,SprintzDecoder
public abstract class Decoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Decoder(TSEncoding type)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DecodergetDecoderByType(TSEncoding encoding, TSDataType dataType)TSEncodinggetType()abstract booleanhasNext(java.nio.ByteBuffer buffer)java.math.BigDecimalreadBigDecimal(java.nio.ByteBuffer buffer)BinaryreadBinary(java.nio.ByteBuffer buffer)booleanreadBoolean(java.nio.ByteBuffer buffer)doublereadDouble(java.nio.ByteBuffer buffer)floatreadFloat(java.nio.ByteBuffer buffer)intreadInt(java.nio.ByteBuffer buffer)longreadLong(java.nio.ByteBuffer buffer)shortreadShort(java.nio.ByteBuffer buffer)abstract voidreset()voidsetType(TSEncoding type)
-
-
-
Constructor Detail
-
Decoder
public Decoder(TSEncoding type)
-
-
Method Detail
-
setType
public void setType(TSEncoding type)
-
getType
public TSEncoding getType()
-
getDecoderByType
public static Decoder getDecoderByType(TSEncoding encoding, TSDataType dataType)
-
readInt
public int readInt(java.nio.ByteBuffer buffer)
-
readBoolean
public boolean readBoolean(java.nio.ByteBuffer buffer)
-
readShort
public short readShort(java.nio.ByteBuffer buffer)
-
readLong
public long readLong(java.nio.ByteBuffer buffer)
-
readFloat
public float readFloat(java.nio.ByteBuffer buffer)
-
readDouble
public double readDouble(java.nio.ByteBuffer buffer)
-
readBinary
public Binary readBinary(java.nio.ByteBuffer buffer)
-
readBigDecimal
public java.math.BigDecimal readBigDecimal(java.nio.ByteBuffer buffer)
-
hasNext
public abstract boolean hasNext(java.nio.ByteBuffer buffer) throws java.io.IOException- Throws:
java.io.IOException
-
reset
public abstract void reset()
-
-