Class JdbcBulkLoadBatchRequest

    • Field Detail

      • CMD_UNKNOWN

        public static final int CMD_UNKNOWN
        A sentinel to indicate that cmd field was not initialized.
        See Also:
        Constant Field Values
      • CMD_CONTINUE

        public static final int CMD_CONTINUE
        Next batch comes in this request and there are more batches.
        See Also:
        Constant Field Values
      • CMD_FINISHED_ERROR

        public static final 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.
        See Also:
        Constant Field Values
      • CMD_FINISHED_EOF

        public static final int CMD_FINISHED_EOF
        This is the final batch of the file and everything went well on the client side. Server may complete the request.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JdbcBulkLoadBatchRequest

        public JdbcBulkLoadBatchRequest()
        Creates the request with uninitialized parameters.
      • JdbcBulkLoadBatchRequest

        public JdbcBulkLoadBatchRequest​(long cursorId,
                                        int batchIdx,
                                        int cmd,
                                        @NotNull
                                        @org.jetbrains.annotations.NotNull byte[] data)
        Creates the request with the specified parameters.
        Parameters:
        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).