Top Description Methods
com.mysql.cj.protocol

public Interface ValueDecoder

Known Direct Implementers
com.mysql.cj.protocol.a.MysqlBinaryValueDecoder, com.mysql.cj.protocol.a.MysqlTextValueDecoder, com.mysql.cj.protocol.x.XProtocolDecoder
Imports
com.mysql.cj.result.Field, .ValueFactory

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 TypeMethod and Description
public <T> T
decodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)

public <T> T
decodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeDatetime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)

public <T> T
decodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)

public <T> T
decodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)

public <T> T
decodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)

public <T> T
decodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)

public <T> T
decodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf)

Method Detail

decodeBitback to summary
public <T> T decodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeByteArrayback to summary
public <T> T decodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
decodeDateback to summary
public <T> T decodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeDatetimeback to summary
public <T> T decodeDatetime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
decodeDecimalback to summary
public <T> T decodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeDoubleback to summary
public <T> T decodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeFloatback to summary
public <T> T decodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt1back to summary
public <T> T decodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt2back to summary
public <T> T decodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt4back to summary
public <T> T decodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeInt8back to summary
public <T> T decodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeSetback to summary
public <T> T decodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
decodeTimeback to summary
public <T> T decodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
decodeTimestampback to summary
public <T> T decodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
decodeUInt1back to summary
public <T> T decodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt2back to summary
public <T> T decodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt4back to summary
public <T> T decodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeUInt8back to summary
public <T> T decodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
decodeYearback to summary
public <T> T decodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf)