Package org.mariadb.jdbc.codec
Class BinaryRowDecoder
java.lang.Object
org.mariadb.jdbc.codec.RowDecoder
org.mariadb.jdbc.codec.BinaryRowDecoder
-
Field Summary
FieldsFields inherited from class org.mariadb.jdbc.codec.RowDecoder
columnCount, columns, index, length, NULL_LENGTH, readBuf
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryRowDecoder
(int columnCount, ColumnDefinitionPacket[] columns, Configuration conf) -
Method Summary
Modifier and TypeMethodDescription<T> T
boolean
byte
double
float
int
long
short
void
setPosition
(int newIndex) Set length and pos indicator to asked index.void
setRow
(byte[] buf) boolean
wasNull()
Methods inherited from class org.mariadb.jdbc.codec.RowDecoder
getBooleanValue, getByteValue, getDoubleValue, getFloatValue, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValue, getValue
-
Field Details
-
nullBitmap
private byte[] nullBitmap
-
-
Constructor Details
-
BinaryRowDecoder
-
-
Method Details
-
decode
- Specified by:
decode
in classRowDecoder
- Throws:
SQLException
-
decodeByte
- Specified by:
decodeByte
in classRowDecoder
- Throws:
SQLException
-
decodeBoolean
- Specified by:
decodeBoolean
in classRowDecoder
- Throws:
SQLException
-
decodeShort
- Specified by:
decodeShort
in classRowDecoder
- Throws:
SQLException
-
decodeInt
- Specified by:
decodeInt
in classRowDecoder
- Throws:
SQLException
-
decodeLong
- Specified by:
decodeLong
in classRowDecoder
- Throws:
SQLException
-
decodeFloat
- Specified by:
decodeFloat
in classRowDecoder
- Throws:
SQLException
-
decodeDouble
- Specified by:
decodeDouble
in classRowDecoder
- Throws:
SQLException
-
setRow
public void setRow(byte[] buf) - Overrides:
setRow
in classRowDecoder
-
wasNull
public boolean wasNull()- Specified by:
wasNull
in classRowDecoder
-
setPosition
public void setPosition(int newIndex) Set length and pos indicator to asked index.- Specified by:
setPosition
in classRowDecoder
- Parameters:
newIndex
- index (0 is first).
-