| Constructor and Description |
|---|
PacketReader(InputStream in,
Configuration conf,
MutableInt sequence)
Constructor of standard socket MySQL packet stream reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MutableInt |
getSequence() |
com.singlestore.jdbc.client.ReadableByteBuf |
readPacket(boolean reUsable)
Get next MySQL packet.
|
com.singlestore.jdbc.client.ReadableByteBuf |
readPacket(boolean reUsable,
boolean traceEnable)
Get next MySQL packet.
|
void |
setServerThreadId(Long serverThreadId,
HostAddress hostAddress)
Set server thread id.
|
public PacketReader(InputStream in, Configuration conf, MutableInt sequence)
in - streamconf - connection optionssequence - current increment sequencepublic com.singlestore.jdbc.client.ReadableByteBuf readPacket(boolean reUsable)
throws IOException
readPacket in interface ReaderreUsable - if can use existing reusable buf to avoid creating arrayIOException - if socket exception occur.public com.singlestore.jdbc.client.ReadableByteBuf readPacket(boolean reUsable,
boolean traceEnable)
throws IOException
readPacket in interface ReaderreUsable - if can use existing reusable buf to avoid creating arraytraceEnable - must trace packet.IOException - if socket exception occur.public MutableInt getSequence()
getSequence in interface Readerpublic void close()
throws IOException
close in interface ReaderIOExceptionpublic void setServerThreadId(Long serverThreadId, HostAddress hostAddress)
setServerThreadId in interface ReaderserverThreadId - current server thread id.hostAddress - host informationCopyright © 2023 SingleStore. All rights reserved.