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 | |
25 | namespace proxima { |
26 | namespace be { |
27 | namespace index { |
28 | |
29 | const std::string ("HeaderBlock" ); |
30 | const std::string DATA_BLOCK("DataBlock" ); |
31 | |
32 | const std::string SUMMARY_BLOCK("SummaryBlock" ); |
33 | const std::string VERSION_BLOCK("VersionBlock" ); |
34 | const std::string SEGMENT_BLOCK("SegmentBlock" ); |
35 | |
36 | const std::string FORWARD_DUMP_BLOCK("ForwardIndex" ); |
37 | const std::string COLUMN_DUMP_BLOCK("ColumnIndex" ); |
38 | |
39 | const uint64_t INVALID_KEY = -1UL; |
40 | const uint64_t INVALID_DOC_ID = -1UL; |
41 | const uint32_t INVALID_SEGMENT_ID = -1U; |
42 | |
43 | } // end namespace index |
44 | } // namespace be |
45 | } // end namespace proxima |
46 | |