Package org.mariadb.r2dbc.codec.list
Class FloatCodec
- java.lang.Object
-
- org.mariadb.r2dbc.codec.list.FloatCodec
-
-
Field Summary
Fields Modifier and Type Field Description static FloatCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description FloatCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Class<?> value)FloatdecodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Float> type, ExceptionFactory factory)FloatdecodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Float> type, ExceptionFactory factory)BindValueencodeBinary(io.netty.buffer.ByteBufAllocator allocator, Object value, ExceptionFactory factory)BindValueencodeText(io.netty.buffer.ByteBufAllocator allocator, Object value, Context context, ExceptionFactory factory)DataTypegetBinaryEncodeType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.codec.Codec
createEncodedValue, createEncodedValue
-
-
-
-
Field Detail
-
INSTANCE
public static final FloatCodec INSTANCE
-
-
Method Detail
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
-
canEncode
public boolean canEncode(Class<?> value)
-
decodeText
public Float decodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Float> type, ExceptionFactory factory)
- Specified by:
decodeTextin interfaceCodec<Float>
-
decodeBinary
public Float decodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Float> type, ExceptionFactory factory)
- Specified by:
decodeBinaryin interfaceCodec<Float>
-
encodeText
public BindValue encodeText(io.netty.buffer.ByteBufAllocator allocator, Object value, Context context, ExceptionFactory factory)
- Specified by:
encodeTextin interfaceCodec<Float>
-
encodeBinary
public BindValue encodeBinary(io.netty.buffer.ByteBufAllocator allocator, Object value, ExceptionFactory factory)
- Specified by:
encodeBinaryin interfaceCodec<Float>
-
getBinaryEncodeType
public DataType getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<Float>
-
-