public final class ExecutePacket extends Object implements RedoableWithPrepareClientMessage
| Constructor and Description |
|---|
ExecutePacket(Prepare prepareResult,
Parameters parameters,
String command,
ServerPreparedStatement prep,
InputStream localInfileInputStream)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
batchUpdateLength()
Number of parameter rows, and so expected return length
|
boolean |
binaryProtocol()
Are return value encoded in binary protocol
|
boolean |
canSkipMeta()
Can skip metadata
|
String |
description()
Message description
|
int |
encode(Writer writer,
com.singlestore.jdbc.client.Context context,
Prepare newPrepareResult)
COM_STMT_EXECUTE packet
|
void |
ensureReplayable(com.singlestore.jdbc.client.Context context)
Ensure that command can be replayed
|
String |
getCommand()
sql command value
|
InputStream |
getLocalInfileInputStream()
Get current local infile input stream.
|
ServerPreparedStatement |
prep()
Server prepare statement caller
|
void |
saveParameters()
Save parameters of command that can be re-executed
|
void |
setPrepareResult(PrepareResultPacket prepareResult)
Set prepare result, if pipelining prepare
|
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, reEncode, rePreparepublic ExecutePacket(Prepare prepareResult, Parameters parameters, String command, ServerPreparedStatement prep, InputStream localInfileInputStream)
prepareResult - prepare resultparameters - parametercommand - sql commandprep - prepared statementlocalInfileInputStream - local infile input streampublic void saveParameters()
RedoableClientMessagesaveParameters in interface RedoableClientMessagepublic void ensureReplayable(com.singlestore.jdbc.client.Context context)
throws IOException,
SQLException
RedoableClientMessageensureReplayable in interface RedoableClientMessagecontext - connection contextIOException - If socket error occursSQLException - for other type of issuepublic int encode(Writer writer, com.singlestore.jdbc.client.Context context, Prepare newPrepareResult) throws IOException, SQLException
int[1] 0x17 : COM_STMT_EXECUTE header int[4] statement id int[1] flags: int[4] Iteration count (always 1) if (param_count ] 0) byte[(param_count + 7)/8] null bitmap byte[1]: send type to server (0 / 1) if (send type to server) for each parameter : byte[1]: field type byte[1]: parameter flag for each parameter (i.e param_count times) byte[n] binary parameter value
encode in interface RedoableClientMessageencode in interface RedoableWithPrepareClientMessagewriter - socket writercontext - connection contextnewPrepareResult - new prepare resultIOException - if a socket exception occursSQLException - for any other kind of errorpublic boolean canSkipMeta()
com.singlestore.jdbc.message.ClientMessagecanSkipMeta in interface com.singlestore.jdbc.message.ClientMessagepublic int batchUpdateLength()
com.singlestore.jdbc.message.ClientMessagebatchUpdateLength in interface com.singlestore.jdbc.message.ClientMessagepublic String getCommand()
RedoableWithPrepareClientMessagegetCommand in interface RedoableWithPrepareClientMessagepublic InputStream getLocalInfileInputStream()
com.singlestore.jdbc.message.ClientMessagegetLocalInfileInputStream in interface com.singlestore.jdbc.message.ClientMessagepublic ServerPreparedStatement prep()
RedoableWithPrepareClientMessageprep in interface RedoableWithPrepareClientMessagepublic boolean binaryProtocol()
com.singlestore.jdbc.message.ClientMessagebinaryProtocol in interface com.singlestore.jdbc.message.ClientMessagepublic String description()
com.singlestore.jdbc.message.ClientMessagedescription in interface com.singlestore.jdbc.message.ClientMessagepublic 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 void setPrepareResult(PrepareResultPacket prepareResult)
RedoableWithPrepareClientMessagesetPrepareResult in interface RedoableWithPrepareClientMessageprepareResult - prepare resultsCopyright © 2025 SingleStore. All rights reserved.