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 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(ByteBuffer buffer)BigDecimalreadBigDecimal(ByteBuffer buffer)BinaryreadBinary(ByteBuffer buffer)booleanreadBoolean(ByteBuffer buffer)doublereadDouble(ByteBuffer buffer)floatreadFloat(ByteBuffer buffer)intreadInt(ByteBuffer buffer)longreadLong(ByteBuffer buffer)shortreadShort(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(ByteBuffer buffer)
-
readBoolean
public boolean readBoolean(ByteBuffer buffer)
-
readShort
public short readShort(ByteBuffer buffer)
-
readLong
public long readLong(ByteBuffer buffer)
-
readFloat
public float readFloat(ByteBuffer buffer)
-
readDouble
public double readDouble(ByteBuffer buffer)
-
readBinary
public Binary readBinary(ByteBuffer buffer)
-
readBigDecimal
public BigDecimal readBigDecimal(ByteBuffer buffer)
-
hasNext
public abstract boolean hasNext(ByteBuffer buffer) throws IOException
- Throws:
IOException
-
reset
public abstract void reset()
-
-