Class FloatDecoder
- java.lang.Object
-
- org.apache.iotdb.tsfile.encoding.decoder.Decoder
-
- org.apache.iotdb.tsfile.encoding.decoder.FloatDecoder
-
public class FloatDecoder extends Decoder
Decoder for float or double value using rle or two diff. For more info about encoding pattern, seeFloatEncoder
-
-
Constructor Summary
Constructors Constructor Description FloatDecoder(TSEncoding encodingType, TSDataType dataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext(ByteBuffer buffer)BinaryreadBinary(ByteBuffer buffer)booleanreadBoolean(ByteBuffer buffer)doublereadDouble(ByteBuffer buffer)floatreadFloat(ByteBuffer buffer)intreadInt(ByteBuffer buffer)longreadLong(ByteBuffer buffer)shortreadShort(ByteBuffer buffer)voidreset()-
Methods inherited from class org.apache.iotdb.tsfile.encoding.decoder.Decoder
getDecoderByType, getType, readBigDecimal, setType
-
-
-
-
Constructor Detail
-
FloatDecoder
public FloatDecoder(TSEncoding encodingType, TSDataType dataType)
-
-
Method Detail
-
readFloat
public float readFloat(ByteBuffer buffer)
-
readDouble
public double readDouble(ByteBuffer buffer)
- Overrides:
readDoublein classDecoder
-
hasNext
public boolean hasNext(ByteBuffer buffer) throws IOException
- Specified by:
hasNextin classDecoder- Throws:
IOException
-
readBinary
public Binary readBinary(ByteBuffer buffer)
- Overrides:
readBinaryin classDecoder
-
readBoolean
public boolean readBoolean(ByteBuffer buffer)
- Overrides:
readBooleanin classDecoder
-
readShort
public short readShort(ByteBuffer buffer)
-
readInt
public int readInt(ByteBuffer buffer)
-
readLong
public long readLong(ByteBuffer buffer)
-
-