|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mariadb.jdbc.internal.io.input.StandardPacketInputStream
public class StandardPacketInputStream
Constructor Summary | |
---|---|
StandardPacketInputStream(InputStream in,
int maxQuerySizeToLog)
|
Method Summary | |
---|---|
void |
close()
|
static byte[] |
create(byte[] value)
Constructor for single Data (using text format). |
static byte[] |
create(byte[][] rowData,
ColumnType[] columnTypes)
Create Buffer with Text protocol values. |
BufferedInputStream |
getBufferedInputStream()
Get current Buffered input stream for creating compress input stream, to avoid losing already read bytes in case of pipelining. |
int |
getCompressLastPacketSeq()
|
int |
getLastPacketLength()
|
int |
getLastPacketSeq()
|
Buffer |
getPacket(boolean reUsable)
|
byte[] |
getPacketArray(boolean reUsable)
Get next packet. |
void |
setServerThreadId(long serverThreadId,
Boolean isMaster)
Set server thread id. |
void |
setTraceCache(LruTraceCache traceCache)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardPacketInputStream(InputStream in, int maxQuerySizeToLog)
Method Detail |
---|
public static byte[] create(byte[] value)
value
- value
public static byte[] create(byte[][] rowData, ColumnType[] columnTypes)
rowData
- datascolumnTypes
- column types
public Buffer getPacket(boolean reUsable) throws IOException
getPacket
in interface PacketInputStream
IOException
public BufferedInputStream getBufferedInputStream()
public byte[] getPacketArray(boolean reUsable) throws IOException
getPacketArray
in interface PacketInputStream
reUsable
- if can use existing reusable buffer to avoid creating array
IOException
- if socket exception occur.public int getLastPacketLength()
getLastPacketLength
in interface PacketInputStream
public int getLastPacketSeq()
getLastPacketSeq
in interface PacketInputStream
public int getCompressLastPacketSeq()
getCompressLastPacketSeq
in interface PacketInputStream
public void close() throws IOException
close
in interface PacketInputStream
IOException
public void setServerThreadId(long serverThreadId, Boolean isMaster)
setServerThreadId
in interface PacketInputStream
serverThreadId
- current server thread id.isMaster
- is server masterpublic void setTraceCache(LruTraceCache traceCache)
setTraceCache
in interface PacketInputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |