1/**
2 * Copyright 2021 Alibaba, Inc. and its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15
16 * \author Haichao.chc
17 * \date Oct 2020
18 * \brief Definitions of some constants
19 */
20
21#pragma once
22
23#include <string>
24
25namespace proxima {
26namespace be {
27namespace index {
28
29const std::string HEADER_BLOCK("HeaderBlock");
30const std::string DATA_BLOCK("DataBlock");
31
32const std::string SUMMARY_BLOCK("SummaryBlock");
33const std::string VERSION_BLOCK("VersionBlock");
34const std::string SEGMENT_BLOCK("SegmentBlock");
35
36const std::string FORWARD_DUMP_BLOCK("ForwardIndex");
37const std::string COLUMN_DUMP_BLOCK("ColumnIndex");
38
39const uint64_t INVALID_KEY = -1UL;
40const uint64_t INVALID_DOC_ID = -1UL;
41const uint32_t INVALID_SEGMENT_ID = -1U;
42
43} // end namespace index
44} // namespace be
45} // end namespace proxima
46