Package com.mysql.cj.protocol
Interface ValueDecoder
- All Known Implementing Classes:
MysqlBinaryValueDecoder,MysqlTextValueDecoder,XProtocolDecoder
public interface ValueDecoder
A value decoder is responsible for interpreting a byte array as a value. The type of the value is encoded in the method call. After decoding, the value
decoder passes an intermediate representation of the value to a
ValueFactory for result value creation.- Since:
- 6.0
-
Method Summary
Modifier and Type Method Description <T> TdecodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)<T> TdecodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeDatetime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)<T> TdecodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)<T> TdecodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)<T> TdecodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)<T> TdecodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)<T> TdecodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf)