From 86bed938eb304a8b9314da64281fa9cffe698668 Mon Sep 17 00:00:00 2001 From: Binbin_Qian <15843875+binbinqian@user.noreply.gitee.com> Date: Fri, 23 May 2025 15:46:46 +0800 Subject: [PATCH] rocksdb interface port---rdb_index_merge.h-1 --- storage/rocksdb/rdb_index_merge.h | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 storage/rocksdb/rdb_index_merge.h diff --git a/storage/rocksdb/rdb_index_merge.h b/storage/rocksdb/rdb_index_merge.h new file mode 100644 index 000000000..afe7e0961 --- /dev/null +++ b/storage/rocksdb/rdb_index_merge.h @@ -0,0 +1,41 @@ +/* + Copyright (c) 2016, Facebook, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +#pragma once + +/* MySQL header files */ +#include "src/interface/handler.h" /* handler */ + +/* C++ standard header files */ +#include +#include +#include + +/* RocksDB header files */ +#include "rocksdb/db.h" + +/* MyRocks header files */ +#include "./rdb_comparator.h" + +namespace myrocks { + +/* + Length of delimiters used during inplace index creation. +*/ +#define RDB_MERGE_CHUNK_LEN sizeof(size_t) +#define RDB_MERGE_REC_DELIMITER sizeof(size_t) +#define RDB_MERGE_KEY_DELIMITER RDB_MERGE_REC_DELIMITER +#define RDB_MERGE_VAL_DELIMITER RDB_MERGE_REC_DELIMITER -- Gitee