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_EXEC, BINARY_TYPE_GET, BINARY_TYPE_NAME_GET, BINARY_TYPE_NAME_PUT, BINARY_TYPE_PUT, CACHE_PARTITIONS, META_COLUMNS, META_INDEXES, META_PARAMS, META_PRIMARY_KEYS, META_SCHEMAS, META_TABLES, QRY_EXEC, QRY_METAHANDSHAKE| Constructor and Description |
|---|
JdbcBulkLoadBatchRequest()
Creates the request with uninitialized parameters.
|
JdbcBulkLoadBatchRequest(long cursorId,
int batchIdx,
int cmd)
Creates the request with specified parameters and zero-length data.
|
JdbcBulkLoadBatchRequest(long cursorId,
int batchIdx,
int cmd,
@NotNull 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).
|
long |
cursorId()
Returns the original cursor ID.
|
@NotNull byte[] |
data()
Returns the data.
|
void |
readBinary(BinaryReaderExImpl reader,
JdbcProtocolContext protoCtx)
Reads fields from provided reader.
|
String |
toString() |
void |
writeBinary(BinaryWriterExImpl writer,
JdbcProtocolContext protoCtx)
Writes fields to provided writer.
|
readRequest, readRequestId, readType, requestId, typepublic 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 cursorId,
int batchIdx,
int cmd)
CMD_FINISHED_ERROR and CMD_FINISHED_EOF.cursorId - The cursor 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 cursorId,
int batchIdx,
int cmd,
@NotNull
@NotNull byte[] data)
cursorId - The cursor 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 cursorId()
public long batchIdx()
public int cmd()
@NotNull public @NotNull byte[] data()
public void writeBinary(BinaryWriterExImpl writer, JdbcProtocolContext protoCtx) throws BinaryObjectException
writeBinary in interface JdbcRawBinarylizablewriteBinary in class JdbcRequestwriter - Binary object writer.protoCtx - JDBC protocol context.BinaryObjectException - In case of error.public void readBinary(BinaryReaderExImpl reader, JdbcProtocolContext protoCtx) throws BinaryObjectException
readBinary in interface JdbcRawBinarylizablereadBinary in class JdbcRequestreader - Binary object reader.protoCtx - JDBC protocol context.BinaryObjectException - In case of error.public String toString()
toString in class JdbcRequest
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020