You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/08/17 08:50:31 UTC

[GitHub] [iotdb] liuminghui233 commented on a diff in pull request #7011: [IOTDB-4132] Fix concurrent bug caused by sharing same DatasetHeader

liuminghui233 commented on code in PR #7011:
URL: https://github.com/apache/iotdb/pull/7011#discussion_r947632855


##########
server/src/main/java/org/apache/iotdb/db/mpp/common/header/ColumnHeaderConstant.java:
##########
@@ -0,0 +1,218 @@
+/*
+ * 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.mpp.common.header;
+
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+public class ColumnHeaderConstant {
+
+  // column names for query statement
+  public static final String COLUMN_TIME = "Time";
+  public static final String COLUMN_VALUE = "value";
+  public static final String COLUMN_DEVICE = "Device";
+
+  // column names for schema statement
+  public static final String COLUMN_STORAGE_GROUP = "storage group";
+  public static final String COLUMN_TIMESERIES = "timeseries";
+  public static final String COLUMN_TIMESERIES_ALIAS = "alias";
+  public static final String COLUMN_TIMESERIES_DATATYPE = "dataType";
+  public static final String COLUMN_TIMESERIES_ENCODING = "encoding";
+  public static final String COLUMN_TIMESERIES_COMPRESSION = "compression";
+  public static final String COLUMN_DEVICES = "devices";
+  public static final String COLUMN_TAGS = "tags";
+  public static final String COLUMN_ATTRIBUTES = "attributes";
+  public static final String COLUMN_IS_ALIGNED = "isAligned";
+  public static final String COLUMN_COUNT = "count";
+  public static final String COLUMN_TTL = "ttl";
+  public static final String COLUMN_SCHEMA_REPLICATION_FACTOR = "schema_replication_factor";
+  public static final String COLUMN_DATA_REPLICATION_FACTOR = "data_replication_factor";
+  public static final String COLUMN_TIME_PARTITION_INTERVAL = "time_partition_interval";
+  public static final String COLUMN_CHILDPATHS = "child paths";
+  public static final String COLUMN_NODETYPES = "node types";
+  public static final String COLUMN_CHILDNODES = "child nodes";
+  public static final String COLUMN_VERSION = "version";
+  public static final String COLUMN_PATHS = "paths";
+
+  // column names for count statement
+  public static final String COLUMN_COLUMN = "column";
+  public static final String COLUMN_COUNT_DEVICES = "count(devices)";
+  public static final String COLUMN_COUNT_NODES = "count(nodes)";
+  public static final String COLUMN_COUNT_TIMESERIES = "count(timeseries)";
+  public static final String COLUMN_COUNT_STORAGE_GROUP = "count(storage group)";
+
+  // column names for show cluster statement
+  public static final String COLUMN_NODE_ID = "NodeID";
+  public static final String COLUMN_NODE_TYPE = "NodeType";
+  public static final String COLUMN_STATUS = "Status";
+  public static final String COLUMN_HOST = "Host";
+  public static final String COLUMN_PORT = "Port";
+
+  // column names for show functions statement
+  public static final String COLUMN_FUNCTION_NAME = "function name";
+  public static final String COLUMN_FUNCTION_TYPE = "function type";
+  public static final String COLUMN_FUNCTION_CLASS = "class name (UDF)";
+
+  // column names for show region statement
+  public static final String COLUMN_REGION_ID = "RegionId";
+  public static final String COLUMN_TYPE = "Type";
+  public static final String COLUMN_DATANODE_ID = "DataNodeId";
+  public static final String COLUMN_SERIES_SLOTS = "Series Slots";
+  public static final String COLUMN_TIME_SLOTS = "Time Slots";
+  public static final String COLUMN_ROLE = "Role";
+
+  // column names for show datanodes
+  public static final String COLUMN_DATA_REGION_NUM = "DataRegionNum";
+  public static final String COLUMN_SCHEMA_REGION_NUM = "SchemaRegionNum";
+
+  // column names for show schema template statement
+  public static final String COLUMN_TEMPLATE_NAME = "template name";
+
+  public static final List<ColumnHeader> lastQueryColumnHeaders =
+      Arrays.asList(

Review Comment:
   fixed



-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org