T - the type without parameter that is handled by this codec.public interface ParametrizedCodec<T> extends Codec<T>
It also can encode and decode values without parameter.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(MySqlColumnMetadata metadata,
ParameterizedType target)
Check if can decode the field value as specified
ParameterizedType. |
@Nullable Object |
decode(io.netty.buffer.ByteBuf value,
MySqlColumnMetadata metadata,
ParameterizedType target,
boolean binary,
CodecContext context)
Decode a
ByteBuf as specified ParameterizedType. |
@Nullable @Nullable Object decode(io.netty.buffer.ByteBuf value, MySqlColumnMetadata metadata, ParameterizedType target, boolean binary, CodecContext context)
ByteBuf as specified ParameterizedType.value - the ByteBuf.metadata - the metadata of the column.target - the specified ParameterizedType.binary - if the value should be decoded by binary protocol.context - the codec context.boolean canDecode(MySqlColumnMetadata metadata, ParameterizedType target)
ParameterizedType.metadata - the metadata of the column.target - the specified ParameterizedType.Copyright © 2018–2023 asyncer.io. All rights reserved.