This is an automated email from the ASF dual-hosted git repository.

geniuspig pushed a commit to branch add_conf_0.11
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 9e2736c25d320c769c020f8588fe1f72735dc992
Author: Boris <[email protected]>
AuthorDate: Wed Jan 6 12:22:47 2021 +0800

    add conf
---
 server/src/assembly/resources/conf/iotdb-engine.properties        | 8 +++++++-
 .../src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java   | 4 ++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties 
b/server/src/assembly/resources/conf/iotdb-engine.properties
index 931ee25..a436b42 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -590,4 +590,10 @@ 
authorizer_provider_class=org.apache.iotdb.db.auth.authorizer.LocalFileAuthorize
 
 #If OpenIdAuthorizer is enabled, then openID_url must be set.
 
-#openID_url=
\ No newline at end of file
+#openID_url=
+
+# whether enable data partition. If disabled, all data belongs to partition 0
+enable_partition=false
+
+# time range for partitioning data inside each storage group, the unit is 
second
+partition_interval=604800
\ No newline at end of file
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java 
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 41d3af1..0aa0c19 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -551,6 +551,10 @@ public class IoTDBDescriptor {
       //if using org.apache.iotdb.db.auth.authorizer.OpenIdAuthorizer, 
openID_url is needed.
       conf.setOpenIdProviderUrl(properties.getProperty("openID_url", ""));
 
+      
conf.setEnablePartition(Boolean.parseBoolean(properties.getProperty("enable_partition",
 conf.isEnablePartition() + "")));
+
+      
conf.setPartitionInterval(Long.parseLong(properties.getProperty("partition_interval",
 conf.getPartitionInterval() + "")));
+
       // At the same time, set TSFileConfig
       TSFileDescriptor.getInstance().getConfig()
           .setTSFileStorageFs(FSType.valueOf(

Reply via email to