public class Ob20PacketInputStream extends StandardPacketInputStream
lastPacketLength, mysqlHeaderenableNetworkStatistics, inputStream, MAX_PACKET_SIZE, maxQuerySizeToLog, mysqlSeqNo, REUSABLE_BUFFER_LENGTH, reusableArray, serverThreadLog, threadId, timestampAfterRead, traceCache| Constructor and Description |
|---|
Ob20PacketInputStream(InputStream in,
Options options,
long threadId,
OceanBaseProtocolV20 ob20) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTrace(int offset,
int length,
byte[] rawBytes) |
Buffer |
getPacket(boolean reUsable) |
byte[] |
getPacketArray(boolean reUsable)
Get next packet.
|
protected void |
readMysqlStream(byte[] rawBytes,
int off,
int remaining) |
create, create, getCompressLastPacketSeq, getInputStreamclearNetworkStatistics, close, enableNetworkStatistics, getLastPacketSeq, getTimestampAfterRead, setServerThreadId, setTraceCachepublic Ob20PacketInputStream(InputStream in, Options options, long threadId, OceanBaseProtocolV20 ob20)
public Buffer getPacket(boolean reUsable) throws IOException
getPacket in interface PacketInputStreamgetPacket in class StandardPacketInputStreamIOExceptionpublic byte[] getPacketArray(boolean reUsable)
throws IOException
StandardPacketInputStreamgetPacketArray in interface PacketInputStreamgetPacketArray in class StandardPacketInputStreamreUsable - if can use existing reusable buffer to avoid creating arrayIOException - if socket exception occur.protected void readMysqlStream(byte[] rawBytes,
int off,
int remaining)
throws IOException
readMysqlStream in class StandardPacketInputStreamIOExceptionprotected void doTrace(int offset,
int length,
byte[] rawBytes)
doTrace in class StandardPacketInputStreamCopyright © 2022 oceanbase.com. All rights reserved.