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)
encoder method in case of failover, passing new prepared object
|
void |
ensureReplayable(com.singlestore.jdbc.client.Context context)
Ensure that command can be replayed
|
String |
getCommand()
sql command value
|
InputStream |
getLocalInfileInputStream() |
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 statementpublic 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
RedoableWithPrepareClientMessageencode 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()
getLocalInfileInputStream 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 © 2023 SingleStore. All rights reserved.