kr11 commented on a change in pull request #2024: URL: https://github.com/apache/iotdb/pull/2024#discussion_r523446943
########## File path: server/src/main/java/org/apache/iotdb/db/index/common/IndexConstant.java ########## @@ -0,0 +1,81 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.iotdb.db.index.common; + +public class IndexConstant { + + // SQL show + public static final String ID = "ID"; + + + public static final String META_DIR_NAME = "meta"; + public static final String STORAGE_GROUP_INDEXING_SUFFIX = ".sg_indexing"; + public static final String STORAGE_GROUP_INDEXED_SUFFIX = ".sg_index"; + + public static final String INDEXING_SUFFIX = ".indexing"; + public static final String INDEXED_SUFFIX = ".index"; + + // whole matching + public static final int NON_SET_TOP_K = -1; + public static final String TOP_K = "TOP_K"; + + // subsequence matching: sliding window + public static final String INDEX_WINDOW_RANGE = "INDEX_WINDOW_RANGE"; + public static final String INDEX_RANGE_STRATEGY = "INDEX_RANGE_STRATEGY"; + public static final String INDEX_SLIDE_STEP = "INDEX_SLIDE_STEP"; + + public static final String INDEX_MAGIC = "IoTDBIndex"; + public static final String DEFAULT_PROP_NAME = "DEFAULT"; + + public static final int INDEX_MAP_INIT_RESERVE_SIZE = 5; + Review comment: > There are many unused constants in this class, I wonder whether we should define them in this PR or not : ) Sure I will remove them. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
