Package org.mariadb.r2dbc.codec.list
Class LongCodec
- java.lang.Object
-
- org.mariadb.r2dbc.codec.list.LongCodec
-
-
Constructor Summary
Constructors Constructor Description LongCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Class<?> value)LongdecodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Long> type, ExceptionFactory factory)LongdecodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Long> type, ExceptionFactory factory)voidencodeDirectBinary(io.netty.buffer.ByteBufAllocator allocator, io.netty.buffer.ByteBuf out, Object value, Context context)voidencodeDirectText(io.netty.buffer.ByteBuf out, Object value, Context context)DataTypegetBinaryEncodeType()static longparse(io.netty.buffer.ByteBuf buf, int length)-
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
encodeBinary, encodeText, isDirect
-
-
-
-
Field Detail
-
INSTANCE
public static final LongCodec INSTANCE
-
-
Method Detail
-
parse
public static long parse(io.netty.buffer.ByteBuf buf, int length)
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
-
canEncode
public boolean canEncode(Class<?> value)
-
decodeText
public Long decodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Long> type, ExceptionFactory factory)
- Specified by:
decodeTextin interfaceCodec<Long>
-
decodeBinary
public Long decodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Long> type, ExceptionFactory factory)
- Specified by:
decodeBinaryin interfaceCodec<Long>
-
encodeDirectText
public void encodeDirectText(io.netty.buffer.ByteBuf out, Object value, Context context)- Specified by:
encodeDirectTextin interfaceCodec<Long>
-
encodeDirectBinary
public void encodeDirectBinary(io.netty.buffer.ByteBufAllocator allocator, io.netty.buffer.ByteBuf out, Object value, Context context)- Specified by:
encodeDirectBinaryin interfaceCodec<Long>
-
getBinaryEncodeType
public DataType getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<Long>
-
-