support strict replace

This commit is contained in:
yongshige
2023-08-08 05:12:15 +00:00
committed by ob-robot
parent 51bb12a3f6
commit a1fa978f84
45 changed files with 559 additions and 129 deletions

View File

@ -155,7 +155,7 @@ private:
int copy(const ObLoadFileIterator &file_iter);
int copy(const DataDescIterator &desc_iter);
int add_data_desc(const DataDesc &data_desc);
int get_next_data_desc(DataDesc &data_desc);
int get_next_data_desc(DataDesc &data_desc, int64_t &pos);
TO_STRING_KV(K_(data_descs), K_(pos));
private:
common::ObSEArray<DataDesc, 64> data_descs_;
@ -337,16 +337,20 @@ private:
struct TaskHandle
{
public:
TaskHandle()
: task_id_(common::OB_INVALID_ID), worker_idx_(-1), session_id_(0), start_line_no_(0)
{
}
table::ObTableLoadSequenceNo get_next_seq_no () { return sequence_no_ ++ ; }
public:
int64_t task_id_;
DataBuffer data_buffer_;
int64_t worker_idx_; // parse thread idx
int32_t session_id_; // table load session id
DataDesc data_desc_;
int64_t start_line_no_; // 从1开始
table::ObTableLoadSequenceNo sequence_no_;
TaskResult result_;
TO_STRING_KV(K_(task_id), K_(data_buffer), K_(worker_idx), K_(session_id), K_(data_desc),
K_(start_line_no), K_(result));
@ -429,6 +433,7 @@ private:
DataBuffer expr_buffer_;
DataReader data_reader_;
int64_t next_worker_idx_;
int64_t next_chunk_id_;
DISALLOW_COPY_AND_ASSIGN(LargeFileLoadExecutor);
};