public class DecompressPacketInputStream extends AbstractPacketInputStream
enableNetworkStatistics, inputStream, MAX_PACKET_SIZE, maxQuerySizeToLog, mysqlSeqNo, REUSABLE_BUFFER_LENGTH, reusableArray, serverThreadLog, threadId, timestampAfterRead, traceCache| Constructor and Description |
|---|
DecompressPacketInputStream(InputStream in,
int maxQuerySizeToLog,
long threadId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTrace(int offset,
int length,
byte[] rawBytes) |
int |
getCompressLastPacketSeq() |
Buffer |
getPacket(boolean reUsable) |
byte[] |
getPacketArray(boolean reUsable)
Get next packet.
|
protected void |
readMysqlStream(byte[] rawBytes,
int off,
int remaining) |
clearNetworkStatistics, close, enableNetworkStatistics, getLastPacketSeq, getTimestampAfterRead, setServerThreadId, setTraceCachepublic DecompressPacketInputStream(InputStream in, int maxQuerySizeToLog, long threadId)
public Buffer getPacket(boolean reUsable) throws IOException
getPacket in interface PacketInputStreamgetPacket in class AbstractPacketInputStreamIOExceptionpublic byte[] getPacketArray(boolean reUsable)
throws IOException
getPacketArray in interface PacketInputStreamgetPacketArray in class AbstractPacketInputStreamreUsable - 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 AbstractPacketInputStreamIOExceptionprotected void doTrace(int offset,
int length,
byte[] rawBytes)
doTrace in class AbstractPacketInputStreampublic int getCompressLastPacketSeq()
getCompressLastPacketSeq in interface PacketInputStreamgetCompressLastPacketSeq in class AbstractPacketInputStreamCopyright © 2022 oceanbase.com. All rights reserved.