Constructor and Description |
---|
BinaryRowPacket(ColumnInformation[] columnInformation,
int columnInformationLength)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
appendPacketIfNeeded(Buffer buffer,
ReadPacketFetcher packetFetcher)
Fetch stream to retrieve data.
|
void |
appendPacketIfNeeded(Buffer buffer,
ReadPacketFetcher packetFetcher,
long encLength)
Fetch stream to retrieve data.
|
byte[][] |
getRow(ReadPacketFetcher packetFetcher,
Buffer buffer)
Get next row data.
|
byte[][] |
getRow(ReadPacketFetcher packetFetcher,
MariaDbInputStream inputStream,
int remaining,
int read)
Read text row stream.
|
public BinaryRowPacket(ColumnInformation[] columnInformation, int columnInformationLength)
columnInformation
- column information.columnInformationLength
- number of columnspublic long appendPacketIfNeeded(Buffer buffer, ReadPacketFetcher packetFetcher) throws IOException
buffer
- bufferpacketFetcher
- packetFetcherIOException
- if a connection error occurpublic void appendPacketIfNeeded(Buffer buffer, ReadPacketFetcher packetFetcher, long encLength) throws IOException
buffer
- readerpacketFetcher
- packetFetcherencLength
- data binary lengthIOException
- if a connection error occurpublic byte[][] getRow(ReadPacketFetcher packetFetcher, Buffer buffer) throws IOException
getRow
in interface RowPacket
packetFetcher
- packetFetcherbuffer
- current bufferIOException
- if any connection error occurpublic byte[][] getRow(ReadPacketFetcher packetFetcher, MariaDbInputStream inputStream, int remaining, int read) throws IOException
getRow
in interface RowPacket
packetFetcher
- packetFetcherinputStream
- inputStreamIOException
- if any connection error occurCopyright © 2017. All rights reserved.