diff --git a/storage/rocksdb/rdb_index_merge.h b/storage/rocksdb/rdb_index_merge.h new file mode 100644 index 0000000000000000000000000000000000000000..afe7e09612ca244140e0d026e35b2cea44f83787 --- /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