Package org.mariadb.r2dbc.codec
Class RowDecoder
- java.lang.Object
-
- org.mariadb.r2dbc.codec.RowDecoder
-
- Direct Known Subclasses:
BinaryRowDecoder,TextRowDecoder
public abstract class RowDecoder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description io.netty.buffer.ByteBufbufprotected MariadbConnectionConfigurationconfprotected ExceptionFactoryfactoryprotected intindexprotected intlengthprotected static intNULL_LENGTH
-
Constructor Summary
Constructors Constructor Description RowDecoder(MariadbConnectionConfiguration conf, ExceptionFactory factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T> Tget(int index, ColumnDefinitionPacket column, Class<T> type)protected IllegalArgumentExceptionnoDecoderException(ColumnDefinitionPacket column, Class<?> type)voidresetRow(io.netty.buffer.ByteBuf buf)abstract voidsetPosition(int position)
-
-
-
Field Detail
-
NULL_LENGTH
protected static final int NULL_LENGTH
- See Also:
- Constant Field Values
-
buf
public io.netty.buffer.ByteBuf buf
-
length
protected int length
-
index
protected int index
-
conf
protected MariadbConnectionConfiguration conf
-
factory
protected ExceptionFactory factory
-
-
Constructor Detail
-
RowDecoder
public RowDecoder(MariadbConnectionConfiguration conf, ExceptionFactory factory)
-
-
Method Detail
-
resetRow
public void resetRow(io.netty.buffer.ByteBuf buf)
-
noDecoderException
protected IllegalArgumentException noDecoderException(ColumnDefinitionPacket column, Class<?> type)
-
setPosition
public abstract void setPosition(int position)
-
get
public abstract <T> T get(int index, ColumnDefinitionPacket column, Class<T> type) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-