public class JdbcBulkLoadBatchRequest extends JdbcRequest
SqlBulkLoadCommand command.| Modifier and Type | Field and Description |
|---|---|
static int |
CMD_CONTINUE
Next batch comes in this request and there are more batches.
|
static int |
CMD_FINISHED_EOF
This is the final batch of the file and everything went well on the client side.
|
static int |
CMD_FINISHED_ERROR
This is the final batch from the client and there was an error on the client side,
so terminate with error on the server side as well.
|
static int |
CMD_UNKNOWN
A sentinel to indicate that
cmd field was not initialized. |
BATCH_EXECHANDSHAKE| Constructor and Description |
|---|
JdbcBulkLoadBatchRequest()
Creates the request with uninitialized parameters.
|
JdbcBulkLoadBatchRequest(long qryId,
int batchIdx,
int cmd)
Creates the request with specified parameters and zero-length data.
|
JdbcBulkLoadBatchRequest(long qryId,
int batchIdx,
int cmd,
byte[] data)
Creates the request with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
long |
batchIdx()
Returns the batch index.
|
int |
cmd()
Returns the command (see CMD_xxx constants for details).
|
byte[] |
data()
Returns the data.
|
long |
queryId()
Returns the original query ID.
|
void |
readBinary(BinaryReaderExImpl reader,
ClientListenerProtocolVersion ver)
Reads fields from provided reader.
|
String |
toString() |
void |
writeBinary(BinaryWriterExImpl writer,
ClientListenerProtocolVersion ver)
Writes fields to provided writer.
|
readRequest, typerequestIdpublic static final int CMD_UNKNOWN
cmd field was not initialized.public static final int CMD_CONTINUE
public static final int CMD_FINISHED_ERROR
public static final int CMD_FINISHED_EOF
public JdbcBulkLoadBatchRequest()
public JdbcBulkLoadBatchRequest(long qryId,
int batchIdx,
int cmd)
CMD_FINISHED_ERROR and CMD_FINISHED_EOF.qryId - The query ID from the JdbcBulkLoadAckResult.batchIdx - Index of the current batch starting with 0.cmd - The command (CMD_CONTINUE, CMD_FINISHED_EOF, or CMD_FINISHED_ERROR).public JdbcBulkLoadBatchRequest(long qryId,
int batchIdx,
int cmd,
@NotNull
byte[] data)
qryId - The query ID from the JdbcBulkLoadAckResult.batchIdx - Index of the current batch starting with 0.cmd - The command (CMD_CONTINUE, CMD_FINISHED_EOF, or CMD_FINISHED_ERROR).data - The data block (zero length is acceptable).public long queryId()
public long batchIdx()
public int cmd()
@NotNull public byte[] data()
public void writeBinary(BinaryWriterExImpl writer, ClientListenerProtocolVersion ver) throws BinaryObjectException
writeBinary in interface JdbcRawBinarylizablewriteBinary in class JdbcRequestwriter - Binary object writer.ver - ver Protocol version.BinaryObjectException - In case of error.public void readBinary(BinaryReaderExImpl reader, ClientListenerProtocolVersion ver) throws BinaryObjectException
readBinary in interface JdbcRawBinarylizablereadBinary in class JdbcRequestreader - Binary object reader.ver - Protocol version.BinaryObjectException - In case of error.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019