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(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)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
-
readDouble
public double readDouble(java.nio.ByteBuffer buffer)
- Overrides:
readDoublein classDecoder
-
hasNext
public boolean hasNext(java.nio.ByteBuffer buffer) throws java.io.IOException
-
readBinary
public Binary readBinary(java.nio.ByteBuffer buffer)
- Overrides:
readBinaryin classDecoder
-
readBoolean
public boolean readBoolean(java.nio.ByteBuffer buffer)
- Overrides:
readBooleanin classDecoder
-
-