public class RewriteQueryMultiPacket extends Object implements RedoableClientMessage
Configuration.rewriteBatchedStatements()| Constructor and Description |
|---|
RewriteQueryMultiPacket(Configuration config,
int paramCount,
com.singlestore.jdbc.util.RewriteClientParser parser,
List<Parameters> batchParameters)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
batchUpdateLength()
Number of parameter rows, and so expected return length
|
String |
description()
Message description
|
int |
encode(Writer encoder,
com.singlestore.jdbc.client.Context context)
Encode client message to socket.
|
void |
ensureReplayable(com.singlestore.jdbc.client.Context context)
Ensure that command can be replayed
|
void |
saveParameters()
Save parameters of command that can be re-executed
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencode, reEncodepublic RewriteQueryMultiPacket(Configuration config, int paramCount, com.singlestore.jdbc.util.RewriteClientParser parser, List<Parameters> batchParameters)
paramCount - original query param countparser - command parser resultbatchParameters - batch parameterspublic void ensureReplayable(com.singlestore.jdbc.client.Context context)
RedoableClientMessageensureReplayable in interface RedoableClientMessagecontext - connection contextpublic void saveParameters()
RedoableClientMessagesaveParameters in interface RedoableClientMessagepublic int encode(Writer encoder, com.singlestore.jdbc.client.Context context) throws IOException, SQLException
com.singlestore.jdbc.message.ClientMessageencode in interface com.singlestore.jdbc.message.ClientMessageencoder - socket writercontext - connection contextIOException - if socket error occurSQLException - if any issue occurspublic int batchUpdateLength()
com.singlestore.jdbc.message.ClientMessagebatchUpdateLength 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.