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 2019/07/23 01:55:24 UTC

[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request #285: Add micro and nano timestamp precision

qiaojialin commented on a change in pull request #285: Add micro and nano timestamp precision
URL: https://github.com/apache/incubator-iotdb/pull/285#discussion_r306099714
 
 

 ##########
 File path: iotdb/src/main/java/org/apache/iotdb/db/conf/IoTDBConfigCheck.java
 ##########
 @@ -0,0 +1,93 @@
+/**
+ * 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.conf;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.Properties;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class IoTDBConfigCheck {
+
+  // this file is located in Data/System/Schema/system_properties.
+  // If user delete folder "Data", system_properties can reset.
+  public static final String DEFAULT_FILEPATH = "system.properties";
+  public static final String PROPERTY_HOME =
+      "data" + File.separator + "system" + File.separator + "schema";
+  private static final IoTDBConfigCheck INSTANCE = new IoTDBConfigCheck();
+  private static final Logger logger = LoggerFactory.getLogger(IoTDBDescriptor.class);
+  private Properties properties = new Properties();
+  // this is a initial parameter.
+  public static String TIMESTAMP_PRECISION = "ms";
 
 Review comment:
   Just use a local variable is good

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services