public final class QueryPacket extends Object implements RedoableClientMessage
| Constructor and Description |
|---|
QueryPacket(String sql)
Constructor
|
QueryPacket(String sql,
InputStream localInfileInputStream)
Constructor with local infile input stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
batchUpdateLength()
Number of parameter rows, and so expected return length
|
String |
description()
Message description
|
int |
encode(Writer writer,
com.singlestore.jdbc.client.Context context)
COM_QUERY packet
|
InputStream |
getLocalInfileInputStream()
Get current local infile input stream.
|
boolean |
isCommit()
Check that command is a COMMIT command
|
boolean |
validateLocalFileName(String fileName,
com.singlestore.jdbc.client.Context context)
Request for local file to be validated from current query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, ensureReplayable, reEncode, saveParameterspublic QueryPacket(String sql)
sql - sql commandpublic QueryPacket(String sql, InputStream localInfileInputStream)
sql - sqllocalInfileInputStream - local infile input streampublic int batchUpdateLength()
com.singlestore.jdbc.message.ClientMessagebatchUpdateLength in interface com.singlestore.jdbc.message.ClientMessagepublic int encode(Writer writer, com.singlestore.jdbc.client.Context context) throws IOException
int[1] 0x03 : COM_QUERY header string[EOF] SQL statement
encode in interface com.singlestore.jdbc.message.ClientMessagewriter - socket writercontext - connection contextIOException - if socket error occurpublic boolean isCommit()
public boolean validateLocalFileName(String fileName, com.singlestore.jdbc.client.Context context)
com.singlestore.jdbc.message.ClientMessagevalidateLocalFileName in interface com.singlestore.jdbc.message.ClientMessagefileName - server file request pathcontext - current connection contextpublic InputStream getLocalInfileInputStream()
com.singlestore.jdbc.message.ClientMessagegetLocalInfileInputStream in interface com.singlestore.jdbc.message.ClientMessagepublic String description()
com.singlestore.jdbc.message.ClientMessagedescription in interface com.singlestore.jdbc.message.ClientMessageCopyright © 2025 SingleStore. All rights reserved.