public class BinaryRowFactory extends AbstractRowFactory implements ProtocolEntityFactory<ResultsetRow,NativePacketPayload>
canReuseRowPacketForBufferRow, columnDefinition, exceptionInterceptor, resultSetConcurrency, useBufferRowSizeThreshold, valueDecoder| Constructor and Description |
|---|
BinaryRowFactory(NativeProtocol protocol,
ColumnDefinition columnDefinition,
Resultset.Concurrency resultSetConcurrency,
boolean canReuseRowPacketForBufferRow) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReuseRowPacketForBufferRow() |
ResultsetRow |
createFromMessage(NativePacketPayload rowPacket)
Create ProtocolEntity of type
T from protocol message. |
private void |
extractNativeEncodedColumn(NativePacketPayload binaryData,
Field[] fields,
int columnIndex,
byte[][] unpackedRowData)
Copy the raw result bytes from the
|
private ResultsetRow |
unpackBinaryResultSetRow(Field[] fields,
NativePacketPayload binaryData)
Un-packs binary-encoded result set data for one row
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFromProtocolEntity, getFetchSize, getResultSetConcurrency, getResultSetTypepublic BinaryRowFactory(NativeProtocol protocol, ColumnDefinition columnDefinition, Resultset.Concurrency resultSetConcurrency, boolean canReuseRowPacketForBufferRow)
public ResultsetRow createFromMessage(NativePacketPayload rowPacket)
ProtocolEntityFactoryT from protocol message.createFromMessage in interface ProtocolEntityFactory<ResultsetRow,NativePacketPayload>rowPacket - Message instancepublic boolean canReuseRowPacketForBufferRow()
canReuseRowPacketForBufferRow in class AbstractRowFactoryprivate final ResultsetRow unpackBinaryResultSetRow(Field[] fields, NativePacketPayload binaryData)
fields - Fields arraybinaryData - dataprivate final void extractNativeEncodedColumn(NativePacketPayload binaryData, Field[] fields, int columnIndex, byte[][] unpackedRowData)
binaryData - packet to thefields - Fields arraycolumnIndex - column indexunpackedRowData - byte array.