You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by le...@apache.org on 2022/02/14 04:07:06 UTC
[iotdb] 32/32: prepare1
This is an automated email from the ASF dual-hosted git repository.
leirui pushed a commit to branch research/M4-visualization
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 100b8516fccdac5414b7f708cc7e2179612690b4
Author: Lei Rui <10...@qq.com>
AuthorDate: Mon Feb 14 11:56:31 2022 +0800
prepare1
---
.../org/apache/iotdb/DataMigrationExample.java | 185 +++
.../src/main/java/org/apache/iotdb/README.md | 35 -
.../org/apache/iotdb/SessionConcurrentExample.java | 197 +++
.../main/java/org/apache/iotdb/SessionExample.java | 673 +++++++++
.../java/org/apache/iotdb/SessionPoolExample.java | 120 ++
.../org/apache/iotdb/bash/run-BallSpeed-exp.sh | 1573 -------------------
.../main/java/org/apache/iotdb/bash/run-KOB-exp.sh | 1579 --------------------
.../java/org/apache/iotdb/bash/run-MF03-exp.sh | 1572 -------------------
.../java/org/apache/iotdb/bash/run-RcvTime-exp.sh | 1571 -------------------
.../org/apache/iotdb/queryExp/QueryBallSpeed.java | 111 --
.../java/org/apache/iotdb/queryExp/QueryKOB.java | 111 --
.../java/org/apache/iotdb/queryExp/QueryMF03.java | 111 --
.../org/apache/iotdb/queryExp/QueryRcvTime.java | 111 --
.../apache/iotdb/tools/AnalyzeChunkInTsFile.java | 39 -
.../java/org/apache/iotdb/tools/ProcessResult.java | 77 -
.../apache/iotdb/tools/QueryBallSpeed-0.12.4.jar | Bin 23907294 -> 0 bytes
.../org/apache/iotdb/tools/QueryKOB-0.12.4.jar | Bin 23907239 -> 0 bytes
.../org/apache/iotdb/tools/QueryMF03-0.12.4.jar | Bin 23907249 -> 0 bytes
.../org/apache/iotdb/tools/QueryRcvTime-0.12.4.jar | Bin 23907277 -> 0 bytes
.../org/apache/iotdb/tools/SumResultUnify.java | 36 -
.../apache/iotdb/tools/WriteBallSpeed-0.12.4.jar | Bin 23907291 -> 0 bytes
.../org/apache/iotdb/tools/WriteKOB-0.12.4.jar | Bin 23907239 -> 0 bytes
.../org/apache/iotdb/tools/WriteMF03-0.12.4.jar | Bin 23907245 -> 0 bytes
.../org/apache/iotdb/tools/WriteRcvTime-0.12.4.jar | Bin 23907276 -> 0 bytes
.../iotdb/tools/iotdb-engine-example.properties | 740 ---------
.../org/apache/iotdb/tools/query_experiment.sh | 12 -
.../src/main/java/org/apache/iotdb/tools/tool.sh | 12 -
.../iotdb/writeData/ExtractBallSpeedData.java | 59 -
.../org/apache/iotdb/writeData/ExtractKOBData.java | 46 -
.../apache/iotdb/writeData/ExtractMF03Data.java | 117 --
.../apache/iotdb/writeData/ExtractRcvTimeData.java | 84 --
.../apache/iotdb/writeData/OverlapGenerator.java | 104 --
.../org/apache/iotdb/writeData/WriteBallSpeed.java | 120 --
.../java/org/apache/iotdb/writeData/WriteKOB.java | 113 --
.../java/org/apache/iotdb/writeData/WriteMF03.java | 112 --
.../org/apache/iotdb/writeData/WriteRcvTime.java | 113 --
36 files changed, 1175 insertions(+), 8558 deletions(-)
diff --git a/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java b/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
new file mode 100644
index 0000000..50e70fa
--- /dev/null
+++ b/example/session/src/main/java/org/apache/iotdb/DataMigrationExample.java
@@ -0,0 +1,185 @@
+/*
+ * 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;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.Callable;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import org.apache.iotdb.rpc.IoTDBConnectionException;
+import org.apache.iotdb.rpc.StatementExecutionException;
+import org.apache.iotdb.session.SessionDataSet.DataIterator;
+import org.apache.iotdb.session.pool.SessionDataSetWrapper;
+import org.apache.iotdb.session.pool.SessionPool;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+import org.apache.iotdb.tsfile.read.common.Path;
+import org.apache.iotdb.tsfile.utils.Binary;
+import org.apache.iotdb.tsfile.write.record.Tablet;
+import org.apache.iotdb.tsfile.write.schema.MeasurementSchema;
+
+/**
+ * Migrate all data belongs to a path from one IoTDB to another IoTDB Each thread migrate one
+ * series, the concurrent thread can be configured by concurrency
+ *
+ * <p>This example is migrating all timeseries from a local IoTDB with 6667 port to a local IoTDB
+ * with 6668 port
+ */
+public class DataMigrationExample {
+
+ // used to read data from the source IoTDB
+ private static SessionPool readerPool;
+ // used to write data into the destination IoTDB
+ private static SessionPool writerPool;
+ // concurrent thread of loading timeseries data
+ private static int concurrency = 5;
+
+ public static void main(String[] args)
+ throws IoTDBConnectionException, StatementExecutionException, ExecutionException,
+ InterruptedException {
+
+ ExecutorService executorService = Executors.newFixedThreadPool(2 * concurrency + 1);
+
+ String path = "root";
+
+ if (args.length != 0) {
+ path = args[0];
+ }
+
+ readerPool = new SessionPool("127.0.0.1", 6667, "root", "root", concurrency);
+ writerPool = new SessionPool("127.0.0.1", 6668, "root", "root", concurrency);
+
+ SessionDataSetWrapper schemaDataSet =
+ readerPool.executeQueryStatement("count timeseries " + path);
+ DataIterator schemaIter = schemaDataSet.iterator();
+ int total;
+ if (schemaIter.next()) {
+ total = schemaIter.getInt(1);
+ System.out.println("Total timeseries: " + total);
+ } else {
+ System.out.println("Can not get timeseries schema");
+ System.exit(1);
+ }
+ readerPool.closeResultSet(schemaDataSet);
+
+ schemaDataSet = readerPool.executeQueryStatement("show timeseries " + path);
+ schemaIter = schemaDataSet.iterator();
+
+ List<Future> futureList = new ArrayList<>();
+ int count = 0;
+ while (schemaIter.next()) {
+ count++;
+ Path currentPath = new Path(schemaIter.getString("timeseries"), true);
+ Future future =
+ executorService.submit(
+ new LoadThread(
+ count, currentPath, TSDataType.valueOf(schemaIter.getString("dataType"))));
+ futureList.add(future);
+ }
+ readerPool.closeResultSet(schemaDataSet);
+
+ for (Future future : futureList) {
+ future.get();
+ }
+ executorService.shutdown();
+
+ readerPool.close();
+ writerPool.close();
+ }
+
+ static class LoadThread implements Callable<Void> {
+
+ String device;
+ String measurement;
+ Path series;
+ TSDataType dataType;
+ Tablet tablet;
+ int i;
+
+ public LoadThread(int i, Path series, TSDataType dataType) {
+ this.i = i;
+ this.device = series.getDevice();
+ this.measurement = series.getMeasurement();
+ this.dataType = dataType;
+ this.series = series;
+ }
+
+ @Override
+ public Void call() {
+
+ List<MeasurementSchema> schemaList = new ArrayList<>();
+ schemaList.add(new MeasurementSchema(measurement, dataType));
+ tablet = new Tablet(device, schemaList, 300000);
+ SessionDataSetWrapper dataSet = null;
+
+ try {
+
+ dataSet =
+ readerPool.executeQueryStatement(
+ String.format("select %s from %s", measurement, device));
+
+ DataIterator dataIter = dataSet.iterator();
+ while (dataIter.next()) {
+ int row = tablet.rowSize++;
+ tablet.timestamps[row] = dataIter.getLong(1);
+ switch (dataType) {
+ case BOOLEAN:
+ ((boolean[]) tablet.values[0])[row] = dataIter.getBoolean(2);
+ break;
+ case INT32:
+ ((int[]) tablet.values[0])[row] = dataIter.getInt(2);
+ break;
+ case INT64:
+ ((long[]) tablet.values[0])[row] = dataIter.getLong(2);
+ break;
+ case FLOAT:
+ ((float[]) tablet.values[0])[row] = dataIter.getFloat(2);
+ break;
+ case DOUBLE:
+ ((double[]) tablet.values[0])[row] = dataIter.getDouble(2);
+ break;
+ case TEXT:
+ ((Binary[]) tablet.values[0])[row] = new Binary(dataIter.getString(2));
+ break;
+ }
+ if (tablet.rowSize == tablet.getMaxRowNumber()) {
+ writerPool.insertTablet(tablet, true);
+ tablet.reset();
+ }
+ }
+ if (tablet.rowSize != 0) {
+ writerPool.insertTablet(tablet);
+ tablet.reset();
+ }
+
+ } catch (Exception e) {
+ System.out.println(
+ "Loading the " + i + "-th timeseries: " + series + " failed " + e.getMessage());
+ return null;
+ } finally {
+ readerPool.closeResultSet(dataSet);
+ }
+
+ System.out.println("Loading the " + i + "-th timeseries: " + series + " success");
+ return null;
+ }
+ }
+}
diff --git a/example/session/src/main/java/org/apache/iotdb/README.md b/example/session/src/main/java/org/apache/iotdb/README.md
deleted file mode 100644
index 0452767..0000000
--- a/example/session/src/main/java/org/apache/iotdb/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Experiment Guidance
-Take the BallSpeed experiment as an example.
-
-Before running `run-BallSpeed-exp.sh`, prepare the workspace as follows:
-```
-/data3/raw_data/rl
----- BallSpeed
----- ---- BallSpeed.csv
----- ---- OverlapGenerator.class
----- ---- OverlapGenerator.java
-/data3/ruilei/rl/dataSpace
-/data3/ruilei/rl/iotdb-server-0.12.4
-/data3/ruilei/rl/iotdb-engine-example.properties
-/data3/ruilei/rl/tool.sh
-/data3/ruilei/rl/ProcessResult.class
-/data3/ruilei/rl/ProcessResult.java
-/data3/ruilei/rl/SumResultUnify.class
-/data3/ruilei/rl/SumResultUnify.java
-/data3/ruilei/rl/BallSpeed_testspace
----- WriteBallSpeed-0.12.4.jar
----- QueryBallSpeed-0.12.4.jar
----- query_experiment.sh [make sure updated the Query jar path]
-```
-
-And then you can run `run-BallSpeed-exp.sh` to perform the BallSpeed experiment.
-
-The results are in:
-```
-FOR EXP1: BallSpeed_testspace/O_10_10_D_0_0/vary_w/result.csv
-FOR EPX2: BallSpeed_testspace/O_10_10_D_0_0/vary_tqe/result.csv
-FOR EXP3: BallSpeed_testspace/exp3.csv
-FOR EXP4: BallSpeed_testspace/exp4.csv
-FOR EXP5: BallSpeed_testspace/exp5.csv
-```
-
diff --git a/example/session/src/main/java/org/apache/iotdb/SessionConcurrentExample.java b/example/session/src/main/java/org/apache/iotdb/SessionConcurrentExample.java
new file mode 100644
index 0000000..3a3144f
--- /dev/null
+++ b/example/session/src/main/java/org/apache/iotdb/SessionConcurrentExample.java
@@ -0,0 +1,197 @@
+/*
+ * 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;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Random;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import org.apache.iotdb.rpc.IoTDBConnectionException;
+import org.apache.iotdb.rpc.StatementExecutionException;
+import org.apache.iotdb.session.Session;
+import org.apache.iotdb.tsfile.file.metadata.enums.CompressionType;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding;
+import org.apache.iotdb.tsfile.write.record.Tablet;
+import org.apache.iotdb.tsfile.write.schema.MeasurementSchema;
+
+public class SessionConcurrentExample {
+
+ private static final int sgNum = 20;
+ private static final int deviceNum = 100;
+ private static final int parallelDegreeForOneSG = 3;
+
+ public static void main(String[] args)
+ throws IoTDBConnectionException, StatementExecutionException {
+
+ Session session = new Session("127.0.0.1", 6667, "root", "root");
+ session.open(false);
+ createTemplate(session);
+ session.close();
+
+ CountDownLatch latch = new CountDownLatch(sgNum * parallelDegreeForOneSG);
+ ExecutorService es = Executors.newFixedThreadPool(sgNum * parallelDegreeForOneSG);
+
+ for (int i = 0; i < sgNum * parallelDegreeForOneSG; i++) {
+ int currentIndex = i;
+ es.execute(() -> concurrentOperation(latch, currentIndex));
+ }
+
+ es.shutdown();
+
+ try {
+ latch.await();
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private static void concurrentOperation(CountDownLatch latch, int currentIndex) {
+
+ Session tmpSession = new Session("127.0.0.1", 6667, "root", "root");
+ try {
+ tmpSession.open(false);
+ } catch (IoTDBConnectionException e) {
+ e.printStackTrace();
+ }
+
+ for (int j = 0; j < deviceNum; j++) {
+ try {
+ insertTablet(
+ tmpSession, String.format("root.sg_%d.d_%d", currentIndex / parallelDegreeForOneSG, j));
+ } catch (IoTDBConnectionException | StatementExecutionException e) {
+ e.printStackTrace();
+ }
+ }
+
+ try {
+ tmpSession.close();
+ } catch (IoTDBConnectionException e) {
+ e.printStackTrace();
+ }
+
+ latch.countDown();
+ }
+
+ private static void createTemplate(Session session)
+ throws IoTDBConnectionException, StatementExecutionException {
+ List<List<String>> measurementList = new ArrayList<>();
+ measurementList.add(Collections.singletonList("s1"));
+ measurementList.add(Collections.singletonList("s2"));
+ measurementList.add(Collections.singletonList("s3"));
+
+ List<List<TSDataType>> dataTypeList = new ArrayList<>();
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+
+ List<List<TSEncoding>> encodingList = new ArrayList<>();
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+
+ List<CompressionType> compressionTypes = new ArrayList<>();
+ for (int i = 0; i < 3; i++) {
+ compressionTypes.add(CompressionType.SNAPPY);
+ }
+ List<String> schemaNames = new ArrayList<>();
+ schemaNames.add("s1");
+ schemaNames.add("s2");
+ schemaNames.add("s3");
+
+ session.createSchemaTemplate(
+ "template1", schemaNames, measurementList, dataTypeList, encodingList, compressionTypes);
+ for (int i = 0; i < sgNum; i++) {
+ session.setSchemaTemplate("template1", "root.sg_" + i);
+ }
+ }
+
+ /**
+ * insert the data of a device. For each timestamp, the number of measurements is the same.
+ *
+ * <p>Users need to control the count of Tablet and write a batch when it reaches the maxBatchSize
+ */
+ private static void insertTablet(Session session, String deviceId)
+ throws IoTDBConnectionException, StatementExecutionException {
+ /*
+ * A Tablet example:
+ * device1
+ * time s1, s2, s3
+ * 1, 1, 1, 1
+ * 2, 2, 2, 2
+ * 3, 3, 3, 3
+ */
+ // The schema of measurements of one device
+ // only measurementId and data type in MeasurementSchema take effects in Tablet
+ List<MeasurementSchema> schemaList = new ArrayList<>();
+ schemaList.add(new MeasurementSchema("s1", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s2", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s3", TSDataType.INT64));
+
+ Tablet tablet = new Tablet(deviceId, schemaList, 100);
+
+ // Method 1 to add tablet data
+ long timestamp = System.currentTimeMillis();
+
+ for (long row = 0; row < 100; row++) {
+ int rowIndex = tablet.rowSize++;
+ tablet.addTimestamp(rowIndex, timestamp);
+ for (int s = 0; s < 3; s++) {
+ long value = new Random().nextLong();
+ tablet.addValue(schemaList.get(s).getMeasurementId(), rowIndex, value);
+ }
+ if (tablet.rowSize == tablet.getMaxRowNumber()) {
+ session.insertTablet(tablet, true);
+ tablet.reset();
+ }
+ timestamp++;
+ }
+
+ if (tablet.rowSize != 0) {
+ session.insertTablet(tablet);
+ tablet.reset();
+ }
+
+ // Method 2 to add tablet data
+ long[] timestamps = tablet.timestamps;
+ Object[] values = tablet.values;
+
+ for (long time = 0; time < 100; time++) {
+ int row = tablet.rowSize++;
+ timestamps[row] = time;
+ for (int i = 0; i < 3; i++) {
+ long[] sensor = (long[]) values[i];
+ sensor[row] = i;
+ }
+ if (tablet.rowSize == tablet.getMaxRowNumber()) {
+ session.insertTablet(tablet, true);
+ tablet.reset();
+ }
+ }
+
+ if (tablet.rowSize != 0) {
+ session.insertTablet(tablet);
+ tablet.reset();
+ }
+ }
+}
diff --git a/example/session/src/main/java/org/apache/iotdb/SessionExample.java b/example/session/src/main/java/org/apache/iotdb/SessionExample.java
new file mode 100644
index 0000000..7b8caea
--- /dev/null
+++ b/example/session/src/main/java/org/apache/iotdb/SessionExample.java
@@ -0,0 +1,673 @@
+/*
+ * 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;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Random;
+import org.apache.iotdb.rpc.IoTDBConnectionException;
+import org.apache.iotdb.rpc.StatementExecutionException;
+import org.apache.iotdb.rpc.TSStatusCode;
+import org.apache.iotdb.session.Session;
+import org.apache.iotdb.session.SessionDataSet;
+import org.apache.iotdb.session.SessionDataSet.DataIterator;
+import org.apache.iotdb.tsfile.file.metadata.enums.CompressionType;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSEncoding;
+import org.apache.iotdb.tsfile.write.record.Tablet;
+import org.apache.iotdb.tsfile.write.schema.MeasurementSchema;
+
+@SuppressWarnings("squid:S106")
+public class SessionExample {
+
+ private static Session session;
+ private static Session sessionEnableRedirect;
+ private static final String ROOT_SG1_D1_S1 = "root.sg1.d1.s1";
+ private static final String ROOT_SG1_D1_S2 = "root.sg1.d1.s2";
+ private static final String ROOT_SG1_D1_S3 = "root.sg1.d1.s3";
+ private static final String ROOT_SG1_D1_S4 = "root.sg1.d1.s4";
+ private static final String ROOT_SG1_D1_S5 = "root.sg1.d1.s5";
+ private static final String ROOT_SG1_D1 = "root.sg1.d1";
+ private static final String LOCAL_HOST = "127.0.0.1";
+
+ public static void main(String[] args)
+ throws IoTDBConnectionException, StatementExecutionException {
+ session = new Session(LOCAL_HOST, 6667, "root", "root");
+ session.open(false);
+
+ // set session fetchSize
+ session.setFetchSize(10000);
+
+ try {
+ session.setStorageGroup("root.sg1");
+ } catch (StatementExecutionException e) {
+ if (e.getStatusCode() != TSStatusCode.PATH_ALREADY_EXIST_ERROR.getStatusCode()) {
+ throw e;
+ }
+ }
+
+ // createTemplate();
+ createTimeseries();
+ createMultiTimeseries();
+ insertRecord();
+ insertTablet();
+ insertTablets();
+ insertRecords();
+ nonQuery();
+ query();
+ queryWithTimeout();
+ rawDataQuery();
+ queryByIterator();
+ deleteData();
+ deleteTimeseries();
+ setTimeout();
+
+ sessionEnableRedirect = new Session(LOCAL_HOST, 6667, "root", "root");
+ sessionEnableRedirect.setEnableQueryRedirection(true);
+ sessionEnableRedirect.open(false);
+
+ // set session fetchSize
+ sessionEnableRedirect.setFetchSize(10000);
+
+ insertRecord4Redirect();
+ query4Redirect();
+ sessionEnableRedirect.close();
+ session.close();
+ }
+
+ private static void createTimeseries()
+ throws IoTDBConnectionException, StatementExecutionException {
+
+ if (!session.checkTimeseriesExists(ROOT_SG1_D1_S1)) {
+ session.createTimeseries(
+ ROOT_SG1_D1_S1, TSDataType.INT64, TSEncoding.RLE, CompressionType.SNAPPY);
+ }
+ if (!session.checkTimeseriesExists(ROOT_SG1_D1_S2)) {
+ session.createTimeseries(
+ ROOT_SG1_D1_S2, TSDataType.INT64, TSEncoding.RLE, CompressionType.SNAPPY);
+ }
+ if (!session.checkTimeseriesExists(ROOT_SG1_D1_S3)) {
+ session.createTimeseries(
+ ROOT_SG1_D1_S3, TSDataType.INT64, TSEncoding.RLE, CompressionType.SNAPPY);
+ }
+
+ // create timeseries with tags and attributes
+ if (!session.checkTimeseriesExists(ROOT_SG1_D1_S4)) {
+ Map<String, String> tags = new HashMap<>();
+ tags.put("tag1", "v1");
+ Map<String, String> attributes = new HashMap<>();
+ tags.put("description", "v1");
+ session.createTimeseries(
+ ROOT_SG1_D1_S4,
+ TSDataType.INT64,
+ TSEncoding.RLE,
+ CompressionType.SNAPPY,
+ null,
+ tags,
+ attributes,
+ "temperature");
+ }
+
+ // create timeseries with SDT property, SDT will take place when flushing
+ if (!session.checkTimeseriesExists(ROOT_SG1_D1_S5)) {
+ // COMPDEV is required
+ // COMPMAXTIME and COMPMINTIME are optional and their unit is ms
+ Map<String, String> props = new HashMap<>();
+ props.put("LOSS", "sdt");
+ props.put("COMPDEV", "0.01");
+ props.put("COMPMINTIME", "2");
+ props.put("COMPMAXTIME", "10");
+ session.createTimeseries(
+ ROOT_SG1_D1_S5,
+ TSDataType.INT64,
+ TSEncoding.RLE,
+ CompressionType.SNAPPY,
+ props,
+ null,
+ null,
+ null);
+ }
+ }
+
+ private static void createMultiTimeseries()
+ throws IoTDBConnectionException, StatementExecutionException {
+
+ if (!session.checkTimeseriesExists("root.sg1.d2.s1")
+ && !session.checkTimeseriesExists("root.sg1.d2.s2")) {
+ List<String> paths = new ArrayList<>();
+ paths.add("root.sg1.d2.s1");
+ paths.add("root.sg1.d2.s2");
+ List<TSDataType> tsDataTypes = new ArrayList<>();
+ tsDataTypes.add(TSDataType.INT64);
+ tsDataTypes.add(TSDataType.INT64);
+ List<TSEncoding> tsEncodings = new ArrayList<>();
+ tsEncodings.add(TSEncoding.RLE);
+ tsEncodings.add(TSEncoding.RLE);
+ List<CompressionType> compressionTypes = new ArrayList<>();
+ compressionTypes.add(CompressionType.SNAPPY);
+ compressionTypes.add(CompressionType.SNAPPY);
+
+ List<Map<String, String>> tagsList = new ArrayList<>();
+ Map<String, String> tags = new HashMap<>();
+ tags.put("unit", "kg");
+ tagsList.add(tags);
+ tagsList.add(tags);
+
+ List<Map<String, String>> attributesList = new ArrayList<>();
+ Map<String, String> attributes = new HashMap<>();
+ attributes.put("minValue", "1");
+ attributes.put("maxValue", "100");
+ attributesList.add(attributes);
+ attributesList.add(attributes);
+
+ List<String> alias = new ArrayList<>();
+ alias.add("weight1");
+ alias.add("weight2");
+
+ session.createMultiTimeseries(
+ paths, tsDataTypes, tsEncodings, compressionTypes, null, tagsList, attributesList, alias);
+ }
+ }
+
+ private static void createTemplate()
+ throws IoTDBConnectionException, StatementExecutionException {
+ List<List<String>> measurementList = new ArrayList<>();
+ measurementList.add(Collections.singletonList("s1"));
+ measurementList.add(Collections.singletonList("s2"));
+ measurementList.add(Collections.singletonList("s3"));
+
+ List<List<TSDataType>> dataTypeList = new ArrayList<>();
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+ dataTypeList.add(Collections.singletonList(TSDataType.INT64));
+
+ List<List<TSEncoding>> encodingList = new ArrayList<>();
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+ encodingList.add(Collections.singletonList(TSEncoding.RLE));
+
+ List<CompressionType> compressionTypes = new ArrayList<>();
+ for (int i = 0; i < 3; i++) {
+ compressionTypes.add(CompressionType.SNAPPY);
+ }
+ List<String> schemaNames = new ArrayList<>();
+ schemaNames.add("s1");
+ schemaNames.add("s2");
+ schemaNames.add("s3");
+
+ session.createSchemaTemplate(
+ "template1", schemaNames, measurementList, dataTypeList, encodingList, compressionTypes);
+ session.setSchemaTemplate("template1", "root.sg1");
+ }
+
+ private static void insertRecord() throws IoTDBConnectionException, StatementExecutionException {
+ String deviceId = ROOT_SG1_D1;
+ List<String> measurements = new ArrayList<>();
+ List<TSDataType> types = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+
+ for (long time = 0; time < 100; time++) {
+ List<Object> values = new ArrayList<>();
+ values.add(1L);
+ values.add(2L);
+ values.add(3L);
+ session.insertRecord(deviceId, time, measurements, types, values);
+ }
+ }
+
+ private static void insertRecord4Redirect()
+ throws IoTDBConnectionException, StatementExecutionException {
+ for (int i = 0; i < 6; i++) {
+ for (int j = 0; j < 2; j++) {
+ String deviceId = "root.redirect" + i + ".d" + j;
+ List<String> measurements = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+ List<TSDataType> types = new ArrayList<>();
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+
+ for (long time = 0; time < 5; time++) {
+ List<Object> values = new ArrayList<>();
+ values.add(1L + time);
+ values.add(2L + time);
+ values.add(3L + time);
+ session.insertRecord(deviceId, time, measurements, types, values);
+ }
+ }
+ }
+ }
+
+ private static void insertStrRecord()
+ throws IoTDBConnectionException, StatementExecutionException {
+ String deviceId = ROOT_SG1_D1;
+ List<String> measurements = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+
+ for (long time = 0; time < 10; time++) {
+ List<String> values = new ArrayList<>();
+ values.add("1");
+ values.add("2");
+ values.add("3");
+ session.insertRecord(deviceId, time, measurements, values);
+ }
+ }
+
+ private static void insertRecordInObject()
+ throws IoTDBConnectionException, StatementExecutionException {
+ String deviceId = ROOT_SG1_D1;
+ List<String> measurements = new ArrayList<>();
+ List<TSDataType> types = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+
+ for (long time = 0; time < 100; time++) {
+ session.insertRecord(deviceId, time, measurements, types, 1L, 1L, 1L);
+ }
+ }
+
+ private static void insertRecords() throws IoTDBConnectionException, StatementExecutionException {
+ String deviceId = ROOT_SG1_D1;
+ List<String> measurements = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+ List<String> deviceIds = new ArrayList<>();
+ List<List<String>> measurementsList = new ArrayList<>();
+ List<List<Object>> valuesList = new ArrayList<>();
+ List<Long> timestamps = new ArrayList<>();
+ List<List<TSDataType>> typesList = new ArrayList<>();
+
+ for (long time = 0; time < 500; time++) {
+ List<Object> values = new ArrayList<>();
+ List<TSDataType> types = new ArrayList<>();
+ values.add(1L);
+ values.add(2L);
+ values.add(3L);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+
+ deviceIds.add(deviceId);
+ measurementsList.add(measurements);
+ valuesList.add(values);
+ typesList.add(types);
+ timestamps.add(time);
+ if (time != 0 && time % 100 == 0) {
+ session.insertRecords(deviceIds, timestamps, measurementsList, typesList, valuesList);
+ deviceIds.clear();
+ measurementsList.clear();
+ valuesList.clear();
+ typesList.clear();
+ timestamps.clear();
+ }
+ }
+
+ session.insertRecords(deviceIds, timestamps, measurementsList, typesList, valuesList);
+ }
+
+ /**
+ * insert the data of a device. For each timestamp, the number of measurements is the same.
+ *
+ * <p>Users need to control the count of Tablet and write a batch when it reaches the maxBatchSize
+ */
+ private static void insertTablet() throws IoTDBConnectionException, StatementExecutionException {
+ /*
+ * A Tablet example:
+ * device1
+ * time s1, s2, s3
+ * 1, 1, 1, 1
+ * 2, 2, 2, 2
+ * 3, 3, 3, 3
+ */
+ // The schema of measurements of one device
+ // only measurementId and data type in MeasurementSchema take effects in Tablet
+ List<MeasurementSchema> schemaList = new ArrayList<>();
+ schemaList.add(new MeasurementSchema("s1", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s2", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s3", TSDataType.INT64));
+
+ Tablet tablet = new Tablet(ROOT_SG1_D1, schemaList, 100);
+
+ // Method 1 to add tablet data
+ long timestamp = System.currentTimeMillis();
+
+ for (long row = 0; row < 100; row++) {
+ int rowIndex = tablet.rowSize++;
+ tablet.addTimestamp(rowIndex, timestamp);
+ for (int s = 0; s < 3; s++) {
+ long value = new Random().nextLong();
+ tablet.addValue(schemaList.get(s).getMeasurementId(), rowIndex, value);
+ }
+ if (tablet.rowSize == tablet.getMaxRowNumber()) {
+ session.insertTablet(tablet, true);
+ tablet.reset();
+ }
+ timestamp++;
+ }
+
+ if (tablet.rowSize != 0) {
+ session.insertTablet(tablet);
+ tablet.reset();
+ }
+
+ // Method 2 to add tablet data
+ long[] timestamps = tablet.timestamps;
+ Object[] values = tablet.values;
+
+ for (long time = 0; time < 100; time++) {
+ int row = tablet.rowSize++;
+ timestamps[row] = time;
+ for (int i = 0; i < 3; i++) {
+ long[] sensor = (long[]) values[i];
+ sensor[row] = i;
+ }
+ if (tablet.rowSize == tablet.getMaxRowNumber()) {
+ session.insertTablet(tablet, true);
+ tablet.reset();
+ }
+ }
+
+ if (tablet.rowSize != 0) {
+ session.insertTablet(tablet);
+ tablet.reset();
+ }
+ }
+
+ private static void insertTablets() throws IoTDBConnectionException, StatementExecutionException {
+ // The schema of measurements of one device
+ // only measurementId and data type in MeasurementSchema take effects in Tablet
+ List<MeasurementSchema> schemaList = new ArrayList<>();
+ schemaList.add(new MeasurementSchema("s1", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s2", TSDataType.INT64));
+ schemaList.add(new MeasurementSchema("s3", TSDataType.INT64));
+
+ Tablet tablet1 = new Tablet(ROOT_SG1_D1, schemaList, 100);
+ Tablet tablet2 = new Tablet("root.sg1.d2", schemaList, 100);
+ Tablet tablet3 = new Tablet("root.sg1.d3", schemaList, 100);
+
+ Map<String, Tablet> tabletMap = new HashMap<>();
+ tabletMap.put(ROOT_SG1_D1, tablet1);
+ tabletMap.put("root.sg1.d2", tablet2);
+ tabletMap.put("root.sg1.d3", tablet3);
+
+ // Method 1 to add tablet data
+ long timestamp = System.currentTimeMillis();
+ for (long row = 0; row < 100; row++) {
+ int row1 = tablet1.rowSize++;
+ int row2 = tablet2.rowSize++;
+ int row3 = tablet3.rowSize++;
+ tablet1.addTimestamp(row1, timestamp);
+ tablet2.addTimestamp(row2, timestamp);
+ tablet3.addTimestamp(row3, timestamp);
+ for (int i = 0; i < 3; i++) {
+ long value = new Random().nextLong();
+ tablet1.addValue(schemaList.get(i).getMeasurementId(), row1, value);
+ tablet2.addValue(schemaList.get(i).getMeasurementId(), row2, value);
+ tablet3.addValue(schemaList.get(i).getMeasurementId(), row3, value);
+ }
+ if (tablet1.rowSize == tablet1.getMaxRowNumber()) {
+ session.insertTablets(tabletMap, true);
+ tablet1.reset();
+ tablet2.reset();
+ tablet3.reset();
+ }
+ timestamp++;
+ }
+
+ if (tablet1.rowSize != 0) {
+ session.insertTablets(tabletMap, true);
+ tablet1.reset();
+ tablet2.reset();
+ tablet3.reset();
+ }
+
+ // Method 2 to add tablet data
+ long[] timestamps1 = tablet1.timestamps;
+ Object[] values1 = tablet1.values;
+ long[] timestamps2 = tablet2.timestamps;
+ Object[] values2 = tablet2.values;
+ long[] timestamps3 = tablet3.timestamps;
+ Object[] values3 = tablet3.values;
+
+ for (long time = 0; time < 100; time++) {
+ int row1 = tablet1.rowSize++;
+ int row2 = tablet2.rowSize++;
+ int row3 = tablet3.rowSize++;
+ timestamps1[row1] = time;
+ timestamps2[row2] = time;
+ timestamps3[row3] = time;
+ for (int i = 0; i < 3; i++) {
+ long[] sensor1 = (long[]) values1[i];
+ sensor1[row1] = i;
+ long[] sensor2 = (long[]) values2[i];
+ sensor2[row2] = i;
+ long[] sensor3 = (long[]) values3[i];
+ sensor3[row3] = i;
+ }
+ if (tablet1.rowSize == tablet1.getMaxRowNumber()) {
+ session.insertTablets(tabletMap, true);
+
+ tablet1.reset();
+ tablet2.reset();
+ tablet3.reset();
+ }
+ }
+
+ if (tablet1.rowSize != 0) {
+ session.insertTablets(tabletMap, true);
+ tablet1.reset();
+ tablet2.reset();
+ tablet3.reset();
+ }
+ }
+
+ private static void deleteData() throws IoTDBConnectionException, StatementExecutionException {
+ String path = ROOT_SG1_D1_S1;
+ long deleteTime = 99;
+ session.deleteData(path, deleteTime);
+ }
+
+ private static void deleteTimeseries()
+ throws IoTDBConnectionException, StatementExecutionException {
+ List<String> paths = new ArrayList<>();
+ paths.add(ROOT_SG1_D1_S1);
+ paths.add(ROOT_SG1_D1_S2);
+ paths.add(ROOT_SG1_D1_S3);
+ session.deleteTimeseries(paths);
+ }
+
+ private static void query() throws IoTDBConnectionException, StatementExecutionException {
+ SessionDataSet dataSet = session.executeQueryStatement("select * from root.sg1.d1");
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ private static void query4Redirect()
+ throws IoTDBConnectionException, StatementExecutionException {
+ String selectPrefix = "select * from root.redirect";
+ for (int i = 0; i < 6; i++) {
+ SessionDataSet dataSet =
+ sessionEnableRedirect.executeQueryStatement(selectPrefix + i + ".d1");
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ for (int i = 0; i < 6; i++) {
+ SessionDataSet dataSet =
+ sessionEnableRedirect.executeQueryStatement(
+ selectPrefix + i + ".d1 where time >= 1 and time < 10");
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ for (int i = 0; i < 6; i++) {
+ SessionDataSet dataSet =
+ sessionEnableRedirect.executeQueryStatement(
+ selectPrefix + i + ".d1 where time >= 1 and time < 10 align by device");
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ for (int i = 0; i < 6; i++) {
+ SessionDataSet dataSet =
+ sessionEnableRedirect.executeQueryStatement(
+ selectPrefix
+ + i
+ + ".d1 where time >= 1 and time < 10 and root.redirect"
+ + i
+ + ".d1.s1 > 1");
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+ }
+
+ private static void queryWithTimeout()
+ throws IoTDBConnectionException, StatementExecutionException {
+ SessionDataSet dataSet = session.executeQueryStatement("select * from root.sg1.d1", 2000);
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ private static void rawDataQuery() throws IoTDBConnectionException, StatementExecutionException {
+ List<String> paths = new ArrayList<>();
+ paths.add(ROOT_SG1_D1_S1);
+ paths.add(ROOT_SG1_D1_S2);
+ paths.add(ROOT_SG1_D1_S3);
+ long startTime = 10L;
+ long endTime = 200L;
+
+ SessionDataSet dataSet = session.executeRawDataQuery(paths, startTime, endTime);
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024);
+ while (dataSet.hasNext()) {
+ System.out.println(dataSet.next());
+ }
+ dataSet.closeOperationHandle();
+ }
+
+ private static void queryByIterator()
+ throws IoTDBConnectionException, StatementExecutionException {
+ SessionDataSet dataSet = session.executeQueryStatement("select * from root.sg1.d1");
+ DataIterator iterator = dataSet.iterator();
+ System.out.println(dataSet.getColumnNames());
+ dataSet.setFetchSize(1024); // default is 10000
+ while (iterator.next()) {
+ StringBuilder builder = new StringBuilder();
+ // get time
+ builder.append(iterator.getLong(1)).append(",");
+ // get second column
+ if (!iterator.isNull(2)) {
+ builder.append(iterator.getLong(2)).append(",");
+ } else {
+ builder.append("null").append(",");
+ }
+
+ // get third column
+ if (!iterator.isNull(ROOT_SG1_D1_S2)) {
+ builder.append(iterator.getLong(ROOT_SG1_D1_S2)).append(",");
+ } else {
+ builder.append("null").append(",");
+ }
+
+ // get forth column
+ if (!iterator.isNull(4)) {
+ builder.append(iterator.getLong(4)).append(",");
+ } else {
+ builder.append("null").append(",");
+ }
+
+ // get fifth column
+ if (!iterator.isNull(ROOT_SG1_D1_S4)) {
+ builder.append(iterator.getObject(ROOT_SG1_D1_S4));
+ } else {
+ builder.append("null");
+ }
+
+ System.out.println(builder);
+ }
+
+ dataSet.closeOperationHandle();
+ }
+
+ private static void nonQuery() throws IoTDBConnectionException, StatementExecutionException {
+ session.executeNonQueryStatement("insert into root.sg1.d1(timestamp,s1) values(200, 1)");
+ }
+
+ private static void setTimeout() throws StatementExecutionException {
+ Session tempSession = new Session(LOCAL_HOST, 6667, "root", "root", 10000, 20000);
+ tempSession.setQueryTimeout(60000);
+ }
+
+ private static void createClusterSession() throws IoTDBConnectionException {
+ ArrayList<String> nodeList = new ArrayList<>();
+ nodeList.add("127.0.0.1:6669");
+ nodeList.add("127.0.0.1:6667");
+ nodeList.add("127.0.0.1:6668");
+ Session clusterSession = new Session(nodeList, "root", "root");
+ clusterSession.open();
+ clusterSession.close();
+ }
+}
diff --git a/example/session/src/main/java/org/apache/iotdb/SessionPoolExample.java b/example/session/src/main/java/org/apache/iotdb/SessionPoolExample.java
new file mode 100644
index 0000000..a2447c1
--- /dev/null
+++ b/example/session/src/main/java/org/apache/iotdb/SessionPoolExample.java
@@ -0,0 +1,120 @@
+/*
+ * 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;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import org.apache.iotdb.rpc.IoTDBConnectionException;
+import org.apache.iotdb.rpc.StatementExecutionException;
+import org.apache.iotdb.session.SessionDataSet.DataIterator;
+import org.apache.iotdb.session.pool.SessionDataSetWrapper;
+import org.apache.iotdb.session.pool.SessionPool;
+import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
+
+public class SessionPoolExample {
+
+ private static SessionPool pool;
+ private static ExecutorService service;
+
+ public static void main(String[] args)
+ throws StatementExecutionException, IoTDBConnectionException, InterruptedException {
+ pool = new SessionPool("127.0.0.1", 6667, "root", "root", 3);
+ service = Executors.newFixedThreadPool(10);
+
+ insertRecord();
+ queryByRowRecord();
+ Thread.sleep(1000);
+ queryByIterator();
+ pool.close();
+ service.shutdown();
+ }
+
+ // more insert example, see SessionExample.java
+ private static void insertRecord() throws StatementExecutionException, IoTDBConnectionException {
+ String deviceId = "root.sg1.d1";
+ List<String> measurements = new ArrayList<>();
+ List<TSDataType> types = new ArrayList<>();
+ measurements.add("s1");
+ measurements.add("s2");
+ measurements.add("s3");
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+ types.add(TSDataType.INT64);
+
+ for (long time = 0; time < 10; time++) {
+ List<Object> values = new ArrayList<>();
+ values.add(1L);
+ values.add(2L);
+ values.add(3L);
+ pool.insertRecord(deviceId, time, measurements, types, values);
+ }
+ }
+
+ private static void queryByRowRecord() {
+ for (int i = 0; i < 1; i++) {
+ service.submit(
+ () -> {
+ SessionDataSetWrapper wrapper = null;
+ try {
+ wrapper = pool.executeQueryStatement("select * from root.sg1.d1");
+ System.out.println(wrapper.getColumnNames());
+ System.out.println(wrapper.getColumnTypes());
+ while (wrapper.hasNext()) {
+ System.out.println(wrapper.next());
+ }
+ } catch (IoTDBConnectionException | StatementExecutionException e) {
+ e.printStackTrace();
+ } finally {
+ // remember to close data set finally!
+ pool.closeResultSet(wrapper);
+ }
+ });
+ }
+ }
+
+ private static void queryByIterator() {
+ for (int i = 0; i < 1; i++) {
+ service.submit(
+ () -> {
+ SessionDataSetWrapper wrapper = null;
+ try {
+ wrapper = pool.executeQueryStatement("select * from root.sg1.d1");
+ // get DataIterator like JDBC
+ DataIterator dataIterator = wrapper.iterator();
+ System.out.println(wrapper.getColumnNames());
+ System.out.println(wrapper.getColumnTypes());
+ while (dataIterator.next()) {
+ StringBuilder builder = new StringBuilder();
+ for (String columnName : wrapper.getColumnNames()) {
+ builder.append(dataIterator.getString(columnName) + " ");
+ }
+ System.out.println(builder);
+ }
+ } catch (IoTDBConnectionException | StatementExecutionException e) {
+ e.printStackTrace();
+ } finally {
+ // remember to close data set finally!
+ pool.closeResultSet(wrapper);
+ }
+ });
+ }
+ }
+}
diff --git a/example/session/src/main/java/org/apache/iotdb/bash/run-BallSpeed-exp.sh b/example/session/src/main/java/org/apache/iotdb/bash/run-BallSpeed-exp.sh
deleted file mode 100644
index 122d5a3..0000000
--- a/example/session/src/main/java/org/apache/iotdb/bash/run-BallSpeed-exp.sh
+++ /dev/null
@@ -1,1573 +0,0 @@
-#!/bin/bash
-
-############################
-# extract small data for fast exp
-# java ExtractBallSpeedData inPath outPath timeIdx valueIdx lineNum
-# lineNum=-1 means extracting total lines
-############################
-cd /data3/raw_data/rl/BallSpeed
-# java ExtractBallSpeedData /data3/raw_data/data/full-game BallSpeed.csv 1 5 8 2000000 3200000
-
-
-############################
-# generate out-of-order source data
-# java OverlapGenerator inPath outPath timeIdx valueIdx overlapPercentage overlapDepth
-# overlapPercentage [0,100]
-# overlapDepth [0,50]
-############################
-cp BallSpeed.csv BallSpeed-O_0_0
-
-java OverlapGenerator BallSpeed.csv BallSpeed-O_10_10 0 1 10 10
-java OverlapGenerator BallSpeed.csv BallSpeed-O_30_10 0 1 30 10
-java OverlapGenerator BallSpeed.csv BallSpeed-O_50_10 0 1 50 10
-java OverlapGenerator BallSpeed.csv BallSpeed-O_70_10 0 1 70 10
-java OverlapGenerator BallSpeed.csv BallSpeed-O_90_10 0 1 90 10
-
-
-############################
-# /data3/raw_data/rl
-# ---- BallSpeed
-# /data3/ruilei/rl/dataSpace2
-# /data3/ruilei/rl/iotdb-server-0.12.4
-# /data3/ruilei/rl/iotdb-engine-example.properties
-# /data3/ruilei/rl/tool.sh
-# /data3/ruilei/rl/ProcessResult.class
-# /data3/ruilei/rl/ProcessResult.java
-# /data3/ruilei/rl/SumResultUnify.class
-# /data3/ruilei/rl/SumResultUnify.java
-# /data3/ruilei/rl/BallSpeed_testspace
-# ---- WriteBallSpeed-0.12.4.jar [make sure updated][time ns ms value long float type][device measurement path]
-# ---- QueryBallSpeed-0.12.4.jar [make sure updated][time ns ms value long float type][device measurement path]
-# ---- query_experiment.sh [make sure updated][call jar name]
-# [EXP1 EXP2]
-# ---- O_10_10_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- vary_w
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- vary_tqe
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_9_30
-# ---- O_10_10_D_9_50
-# ---- O_10_10_D_9_70
-# ---- O_10_10_D_9_90
-
-############################
-
-############################
-# [EXP1]
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_0_0
-cd O_10_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_0_0
-mkdir vary_w
-cd vary_w
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 1 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 2 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 5 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 10 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 20 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 50 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 100 2 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 200 2 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 500 2 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 1000 2 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 2000 2 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 4000 2 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 8000 2 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 1 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 2 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 5 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 10 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 20 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 50 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 100 1 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 200 1 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 500 1 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 1000 1 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 2000 1 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 4000 1 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 8000 1 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 1 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 2 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 5 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 10 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 20 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 50 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 100 3 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 200 3 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 500 3 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 1000 3 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 2000 3 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 4000 3 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 8000 3 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# [EXP2]
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_0_0
-mkdir vary_tqe
-cd vary_tqe
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 13096043655 100 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26192087310 100 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 52384174620 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 130960436550 100 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 261920873100 100 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 617426057627 100 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 13096043655 100 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26192087310 100 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 52384174620 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 130960436550 100 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 261920873100 100 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 617426057627 100 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 13096043655 100 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26192087310 100 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 52384174620 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 130960436550 100 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 261920873100 100 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 617426057627 100 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-
-############################
-# O_0_0_D_0_0
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_0_0_D_0_0
-cd O_0_0_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_0_0_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_0_0_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_0_0_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_0_0 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_0_0_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_30_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_30_10_D_0_0
-cd O_30_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_30_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_30_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_30_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_30_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_30_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_50_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_50_10_D_0_0
-cd O_50_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_50_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_50_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_50_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_50_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_50_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_50_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_70_10_D_0_0
-cd O_70_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_70_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_70_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_70_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_70_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_70_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_90_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_90_10_D_0_0
-cd O_90_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_90_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_90_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_90_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_90_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_90_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP4]
-# ---- O_10_10_D_0_0
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-
-############################
-# O_10_10_D_9_10
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_9_10
-cd O_10_10_D_9_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_9_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_9_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_9_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 9 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_9_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_29_10
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_29_10
-cd O_10_10_D_29_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_29_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_29_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_29_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 29 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_29_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_10
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_49_10
-cd O_10_10_D_49_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 49 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_69_10
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_69_10
-cd O_10_10_D_69_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_69_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_69_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_69_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 69 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_69_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_89_10
-############################
-
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_89_10
-cd O_10_10_D_89_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_89_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_89_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_89_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 89 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_89_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP5-2]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-
-############################
-# O_10_10_D_49_30
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_49_30
-cd O_10_10_D_49_30
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_30/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_30/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_30/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 49 30 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_30
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_50
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_49_50
-cd O_10_10_D_49_50
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_50/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_50/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_50/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 49 50 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_50
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_9_50
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_49_70
-cd O_10_10_D_49_70
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_70/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_70/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_70/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 49 70 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_70
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_90
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace
-mkdir O_10_10_D_49_90
-cd O_10_10_D_49_90
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_90/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_90/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/BallSpeed_O_10_10_D_49_90/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/BallSpeed_testspace/WriteBallSpeed-0.12.4.jar /data3/raw_data/rl/BallSpeed/BallSpeed-O_10_10 49 90 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_90
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 617426057627 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-#########################
-# sum results
-# [EXP3]
-# ---- O_0_0_D_0_0
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-#########################
-# [EXP3]
-cd /data3/ruilei/rl/BallSpeed_testspace/O_0_0_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp3.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_30_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp3.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_50_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp3.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_70_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp3.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_90_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp3.csv
-
-# [EXP4]
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_9_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp4.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_29_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp4.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp4.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_69_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp4.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_89_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp4.csv
-
-# [EXP5]
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp5.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_30
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp5.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_50
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp5.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_70
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp5.csv
-
-cd /data3/ruilei/rl/BallSpeed_testspace/O_10_10_D_49_90
-cd fix
-cat result.csv >>/data3/ruilei/rl/BallSpeed_testspace/exp5.csv
diff --git a/example/session/src/main/java/org/apache/iotdb/bash/run-KOB-exp.sh b/example/session/src/main/java/org/apache/iotdb/bash/run-KOB-exp.sh
deleted file mode 100644
index cd1589b..0000000
--- a/example/session/src/main/java/org/apache/iotdb/bash/run-KOB-exp.sh
+++ /dev/null
@@ -1,1579 +0,0 @@
-#!/bin/bash
-
-############################
-# extract small data for fast exp
-# java ExtractBallSpeedData inPath outPath timeIdx valueIdx lineNum
-# lineNum=-1 means extracting total lines
-############################
-cd /data3/raw_data/rl/KOB
-# java ExtractKOB /data3/raw_data/data/KOB/root.kobelco.trans.03.1090001603.2401604.KOB_0002_00_67.csv KOB.csv 0 1
-
-############################
-# generate out-of-order source data
-# java OverlapGenerator inPath outPath timeIdx valueIdx overlapPercentage overlapDepth
-# overlapPercentage [0,100]
-# overlapDepth [0,50]
-############################
-cp KOB.csv KOB-O_0_0
-
-java OverlapGenerator KOB.csv KOB-O_10_10 0 1 10 10
-java OverlapGenerator KOB.csv KOB-O_30_10 0 1 30 10
-java OverlapGenerator KOB.csv KOB-O_50_10 0 1 50 10
-java OverlapGenerator KOB.csv KOB-O_70_10 0 1 70 10
-java OverlapGenerator KOB.csv KOB-O_90_10 0 1 90 10
-
-
-############################
-# /data3/raw_data/rl
-# ---- KOB
-# /data3/ruilei/rl/dataSpace2
-# /data3/ruilei/rl/iotdb-server-0.12.4
-# /data3/ruilei/rl/iotdb-engine-example.properties
-# /data3/ruilei/rl/tool.sh
-# /data3/ruilei/rl/ProcessResult.class
-# /data3/ruilei/rl/ProcessResult.java
-# /data3/ruilei/rl/SumResultUnify.class
-# /data3/ruilei/rl/SumResultUnify.java
-# /data3/ruilei/rl/KOB_testspace
-# ---- WriteKOB-0.12.4.jar
-# ---- QueryKOB-0.12.4.jar
-# ---- query_experiment.sh [make sure updated]
-# [EXP1 EXP2]
-# ---- O_10_10_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- vary_w
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- vary_tqe
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-
-############################
-
-############################
-# [EXP1]
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_0_0
-cd O_10_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_0_0
-mkdir vary_w
-cd vary_w
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 1 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 2 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 5 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 10 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 20 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 50 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 100 2 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 200 2 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 500 2 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 1000 2 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 2000 2 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 4000 2 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 8000 2 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 1 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 2 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 5 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 10 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 20 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 50 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 100 1 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 200 1 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 500 1 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 1000 1 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 2000 1 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 4000 1 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 8000 1 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 1 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 2 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 5 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 10 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 20 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 50 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 100 3 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 200 3 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 500 3 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 1000 3 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 2000 3 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 4000 3 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 8000 3 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# [EXP2]
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_0_0
-mkdir vary_tqe
-cd vary_tqe
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 139565502 100 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 279131005 100 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 558262010 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 1395655025 100 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 2791310050 100 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 5582620100 100 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10575803591 100 2 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 139565502 100 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 279131005 100 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 558262010 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 1395655025 100 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 2791310050 100 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 5582620100 100 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10575803591 100 1 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 139565502 100 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 279131005 100 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 558262010 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 1395655025 100 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 2791310050 100 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 5582620100 100 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10575803591 100 3 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-
-############################
-# O_0_0_D_0_0
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_0_0_D_0_0
-cd O_0_0_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_0_0_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_0_0_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_0_0_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_0_0 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_0_0_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_30_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_30_10_D_0_0
-cd O_30_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_30_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_30_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_30_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_30_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_30_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_50_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_50_10_D_0_0
-cd O_50_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_50_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_50_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_50_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_50_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_50_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_70_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_70_10_D_0_0
-cd O_70_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_70_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_70_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_70_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_70_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_70_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_90_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_90_10_D_0_0
-cd O_90_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_90_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_90_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_90_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_90_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_90_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP4]
-# ---- O_10_10_D_0_0
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-
-############################
-# O_10_10_D_9_10
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_9_10
-cd O_10_10_D_9_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_9_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_9_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_9_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 9 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_9_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_29_10
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_29_10
-cd O_10_10_D_29_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_29_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_29_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_29_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 29 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_29_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_10
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_49_10
-cd O_10_10_D_49_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 49 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_69_10
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_69_10
-cd O_10_10_D_69_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_69_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_69_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_69_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 69 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_69_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_89_10
-############################
-
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_89_10
-cd O_10_10_D_89_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_89_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_89_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_89_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 89 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_89_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-
-############################
-# O_10_10_D_49_30
-############################
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_49_30
-cd O_10_10_D_49_30
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_30/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_30/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_30/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 49 30 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_30
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_50
-############################
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_49_50
-cd O_10_10_D_49_50
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_50/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_50/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_50/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 49 50 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_50
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_70
-############################
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_49_70
-cd O_10_10_D_49_70
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_70/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_70/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_70/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 49 70 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_70
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_90
-############################
-cd /data3/ruilei/rl/KOB_testspace
-mkdir O_10_10_D_49_90
-cd O_10_10_D_49_90
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_90/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_90/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/KOB_O_10_10_D_49_90/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/KOB_testspace/WriteKOB-0.12.4.jar /data3/raw_data/rl/KOB/KOB-O_10_10 49 90 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_90
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10575803591 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-#########################
-# sum results
-# [EXP3]
-# ---- O_0_0_D_0_0
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-#########################
-# [EXP3]
-cd /data3/ruilei/rl/KOB_testspace/O_0_0_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp3.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_30_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp3.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_50_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp3.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_70_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp3.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_90_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp3.csv
-
-# [EXP4]
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_9_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp4.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_29_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp4.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp4.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_69_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp4.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_89_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp4.csv
-
-# [EXP5]
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp5.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_30
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp5.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_50
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp5.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_70
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp5.csv
-
-cd /data3/ruilei/rl/KOB_testspace/O_10_10_D_49_90
-cd fix
-cat result.csv >>/data3/ruilei/rl/KOB_testspace/exp5.csv
diff --git a/example/session/src/main/java/org/apache/iotdb/bash/run-MF03-exp.sh b/example/session/src/main/java/org/apache/iotdb/bash/run-MF03-exp.sh
deleted file mode 100644
index 5f55f14..0000000
--- a/example/session/src/main/java/org/apache/iotdb/bash/run-MF03-exp.sh
+++ /dev/null
@@ -1,1572 +0,0 @@
-#!/bin/bash
-
-############################
-# extract small data for fast exp
-# java ExtractMF03Data inPath outPath timeIdx valueIdx lineNum
-# lineNum=-1 means extracting total lines
-############################
-cd /data3/raw_data/rl/MF03
-# java ExtractMF03Data /data3/raw_data/data/MF03/allData.txt MF03.csv 0 4 1329955200000000000 1329966000000000000
-
-############################
-# generate out-of-order source data
-# java OverlapGenerator inPath outPath timeIdx valueIdx overlapPercentage overlapDepth
-# overlapPercentage [0,100]
-# overlapDepth [0,50]
-############################
-cp MF03.csv MF03-O_0_0
-
-java OverlapGenerator MF03.csv MF03-O_10_10 0 1 10 10
-java OverlapGenerator MF03.csv MF03-O_30_10 0 1 30 10
-java OverlapGenerator MF03.csv MF03-O_50_10 0 1 50 10
-java OverlapGenerator MF03.csv MF03-O_70_10 0 1 70 10
-java OverlapGenerator MF03.csv MF03-O_90_10 0 1 90 10
-
-############################
-# /data3/raw_data/rl
-# ---- MF03
-# /data3/ruilei/rl/dataSpace2
-# /data3/ruilei/rl/iotdb-server-0.12.4
-# /data3/ruilei/rl/iotdb-engine-example.properties
-# /data3/ruilei/rl/tool.sh
-# /data3/ruilei/rl/ProcessResult.class
-# /data3/ruilei/rl/ProcessResult.java
-# /data3/ruilei/rl/SumResultUnify.class
-# /data3/ruilei/rl/SumResultUnify.java
-# /data3/ruilei/rl/MF03_testspace
-# ---- WriteMF03-0.12.4.jar [make sure updated][time ns ms value long float type][device measurement path]
-# ---- QueryMF03-0.12.4.jar [make sure updated][time ns ms value long float type][device measurement path]
-# ---- query_experiment.sh [make sure updated][call jar name]
-# [EXP1 EXP2]
-# ---- O_10_10_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- vary_w
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- vary_tqe
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_10_30
-# ---- O_10_10_D_10_50
-# ---- O_10_10_D_10_70
-# ---- O_10_10_D_10_90
-
-############################
-
-############################
-# [EXP1]
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_0_0
-cd O_10_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_0_0
-mkdir vary_w
-cd vary_w
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 1 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 2 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 5 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 10 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 20 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 50 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 100 2 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 200 2 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 500 2 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 1000 2 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 2000 2 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 4000 2 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 8000 2 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 1 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 2 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 5 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 10 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 20 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 50 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 100 1 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 200 1 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 500 1 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 1000 1 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 2000 1 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 4000 1 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 8000 1 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 1 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 2 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 5 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 10 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 20 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 50 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 100 3 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 200 3 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 500 3 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 1000 3 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 2000 3 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 4000 3 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 8000 3 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# [EXP2]
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_0_0
-mkdir vary_tqe
-cd vary_tqe
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 255534297777 100 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 511068595555 100 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 1022137191110 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 2555342977775 100 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 5110685955550 100 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10799982233001 100 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 255534297777 100 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 511068595555 100 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 1022137191110 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 2555342977775 100 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 5110685955550 100 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10799982233001 100 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 255534297777 100 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 511068595555 100 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 1022137191110 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 2555342977775 100 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 5110685955550 100 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10799982233001 100 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-
-############################
-# O_0_0_D_0_0
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_0_0_D_0_0
-cd O_0_0_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_0_0_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_0_0_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_0_0_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_0_0 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_0_0_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_30_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_30_10_D_0_0
-cd O_30_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_30_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_30_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_30_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_30_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_30_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_50_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_50_10_D_0_0
-cd O_50_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_50_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_50_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_50_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_50_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_50_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_70_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_70_10_D_0_0
-cd O_70_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_70_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_70_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_70_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_70_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_70_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_90_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_90_10_D_0_0
-cd O_90_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_90_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_90_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_90_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_90_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_90_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP4]
-# ---- O_10_10_D_0_0
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-
-############################
-# O_10_10_D_9_10
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_9_10
-cd O_10_10_D_9_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_9_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_9_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_9_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 9 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_9_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_29_10
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_29_10
-cd O_10_10_D_29_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_29_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_29_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_29_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 29 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_29_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_10
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_49_10
-cd O_10_10_D_49_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 49 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_69_10
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_69_10
-cd O_10_10_D_69_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_69_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_69_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_69_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 69 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_69_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_89_10
-############################
-
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_89_10
-cd O_10_10_D_89_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_89_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_89_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_89_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 89 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_89_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-
-############################
-# O_10_10_D_49_30
-############################
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_49_30
-cd O_10_10_D_49_30
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_30/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_30/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_30/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 49 30 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_30
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_50
-############################
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_49_50
-cd O_10_10_D_49_50
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_50/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_50/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_50/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 49 50 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_50
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_70
-############################
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_49_70
-cd O_10_10_D_49_70
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_70/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_70/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_70/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 49 70 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_70
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_90
-############################
-cd /data3/ruilei/rl/MF03_testspace
-mkdir O_10_10_D_49_90
-cd O_10_10_D_49_90
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_90/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_90/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/MF03_O_10_10_D_49_90/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ns ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/MF03_testspace/WriteMF03-0.12.4.jar /data3/raw_data/rl/MF03/MF03-O_10_10 49 90 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_90
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 10799982233001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-#########################
-# sum results
-# [EXP3]
-# ---- O_0_0_D_0_0
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-#########################
-# [EXP3]
-cd /data3/ruilei/rl/MF03_testspace/O_0_0_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp3.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_30_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp3.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_50_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp3.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_70_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp3.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_90_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp3.csv
-
-# [EXP4]
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_9_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp4.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_29_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp4.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp4.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_69_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp4.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_89_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp4.csv
-
-# [EXP5]
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp5.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_30
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp5.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_50
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp5.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_70
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp5.csv
-
-cd /data3/ruilei/rl/MF03_testspace/O_10_10_D_49_90
-cd fix
-cat result.csv >>/data3/ruilei/rl/MF03_testspace/exp5.csv
diff --git a/example/session/src/main/java/org/apache/iotdb/bash/run-RcvTime-exp.sh b/example/session/src/main/java/org/apache/iotdb/bash/run-RcvTime-exp.sh
deleted file mode 100644
index 789986a..0000000
--- a/example/session/src/main/java/org/apache/iotdb/bash/run-RcvTime-exp.sh
+++ /dev/null
@@ -1,1571 +0,0 @@
-#!/bin/bash
-
-############################
-# extract small data for fast exp
-# java ExtractFullGameData inPath outPath timeIdx valueIdx lineNum
-# lineNum=-1 means extracting total lines
-############################
-cd /data3/raw_data/rl/RcvTime
-
-############################
-# generate out-of-order source data
-# java OverlapGenerator inPath outPath timeIdx valueIdx overlapPercentage overlapDepth
-# overlapPercentage [0,100]
-# overlapDepth [0,50]
-############################
-cp RcvTime.csv RcvTime-O_0_0
-
-java OverlapGenerator RcvTime.csv RcvTime-O_10_10 0 1 10 10
-java OverlapGenerator RcvTime.csv RcvTime-O_30_10 0 1 30 10
-java OverlapGenerator RcvTime.csv RcvTime-O_50_10 0 1 50 10
-java OverlapGenerator RcvTime.csv RcvTime-O_70_10 0 1 70 10
-java OverlapGenerator RcvTime.csv RcvTime-O_90_10 0 1 90 10
-
-############################
-# /data3/raw_data/rl
-# ---- RcvTime
-# /data3/ruilei/rl/dataSpace2
-# /data3/ruilei/rl/iotdb-server-0.12.4
-# /data3/ruilei/rl/iotdb-engine-example.properties
-# /data3/ruilei/rl/tool.sh
-# /data3/ruilei/rl/ProcessResult.class
-# /data3/ruilei/rl/ProcessResult.java
-# /data3/ruilei/rl/SumResultUnify.class
-# /data3/ruilei/rl/SumResultUnify.java
-# /data3/ruilei/rl/RcvTime_testspace
-# ---- WriteRcvTime-0.12.4.jar [make sure updated][time ms ms value long float type][device measurement path]
-# ---- QueryFullGame-0.12.4.jar [make sure updated][time ms ms value long float type][device measurement path]
-# ---- query_experiment.sh [make sure updated][call jar name]
-# [EXP1 EXP2]
-# ---- O_10_10_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- vary_w
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- vary_tqe
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_9_30
-# ---- O_10_10_D_9_50
-# ---- O_10_10_D_9_70
-# ---- O_10_10_D_9_90
-
-############################
-
-############################
-# [EXP1]
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_0_0
-cd O_10_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_0_0
-mkdir vary_w
-cd vary_w
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 1 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 2 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 5 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 10 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 20 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 50 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 100 2 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 200 2 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 500 2 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 1000 2 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 2000 2 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 4000 2 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 8000 2 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 1 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 2 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 5 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 10 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 20 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 50 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 100 1 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 200 1 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 500 1 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 1000 1 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 2000 1 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 4000 1 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 8000 1 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 1 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 2 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 5 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 10 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 20 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 50 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 100 3 >> result_7.txt
-java ProcessResult result_7.txt result_7.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 200 3 >> result_8.txt
-java ProcessResult result_8.txt result_8.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 500 3 >> result_9.txt
-java ProcessResult result_9.txt result_9.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 1000 3 >> result_10.txt
-java ProcessResult result_10.txt result_10.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 2000 3 >> result_11.txt
-java ProcessResult result_11.txt result_11.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 4000 3 >> result_12.txt
-java ProcessResult result_12.txt result_12.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 8000 3 >> result_13.txt
-java ProcessResult result_13.txt result_13.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# [EXP2]
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_0_0
-mkdir vary_tqe
-cd vary_tqe
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 509033300 100 2 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMOC.csv
-./../../../query_experiment.sh 1018066600 100 2 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMOC.csv
-./../../../query_experiment.sh 2036133200 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-./../../../query_experiment.sh 5090333000 100 2 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMOC.csv
-./../../../query_experiment.sh 10180666000 100 2 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMOC.csv
-./../../../query_experiment.sh 26461736001 100 2 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 509033300 100 1 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultMAC.csv
-./../../../query_experiment.sh 1018066600 100 1 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultMAC.csv
-./../../../query_experiment.sh 2036133200 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-./../../../query_experiment.sh 5090333000 100 1 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultMAC.csv
-./../../../query_experiment.sh 10180666000 100 1 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultMAC.csv
-./../../../query_experiment.sh 26461736001 100 1 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 509033300 100 3 >> result_1.txt
-java ProcessResult result_1.txt result_1.out ../sumResultCPV.csv
-./../../../query_experiment.sh 1018066600 100 3 >> result_2.txt
-java ProcessResult result_2.txt result_2.out ../sumResultCPV.csv
-./../../../query_experiment.sh 2036133200 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-./../../../query_experiment.sh 5090333000 100 3 >> result_4.txt
-java ProcessResult result_4.txt result_4.out ../sumResultCPV.csv
-./../../../query_experiment.sh 10180666000 100 3 >> result_5.txt
-java ProcessResult result_5.txt result_5.out ../sumResultCPV.csv
-./../../../query_experiment.sh 26461736001 100 3 >> result_6.txt
-java ProcessResult result_6.txt result_6.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP3]
-# ---- O_0_0_D_0_0:
-# ---- ---- iotdb-engine-enableCPVtrue.properties
-# ---- ---- iotdb-engine-enableCPVfalse.properties
-# ---- ---- write_data.sh
-# ---- ---- fix
-# ---- ---- ---- moc
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- mac
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- ---- ---- cpv
-# ---- ---- ---- ---- change_interval_experiments.sh
-# ---- ---- ---- ---- ProcessResult.class
-# ---- ---- ---- ---- ProcessResult.java
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-
-############################
-# O_0_0_D_0_0
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_0_0_D_0_0
-cd O_0_0_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_0_0_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_0_0_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_0_0_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_0_0 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_0_0_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_30_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_30_10_D_0_0
-cd O_30_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_30_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_30_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_30_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_30_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_30_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_50_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_50_10_D_0_0
-cd O_50_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_50_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_50_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_50_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_50_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_50_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_70_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_70_10_D_0_0
-cd O_70_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_70_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_70_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_70_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_70_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_70_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_90_10_D_0_0
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_90_10_D_0_0
-cd O_90_10_D_0_0
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_90_10_D_0_0/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_90_10_D_0_0/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_90_10_D_0_0/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_90_10 0 0 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_90_10_D_0_0
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP4]
-# ---- O_10_10_D_0_0
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-
-############################
-# O_10_10_D_9_10
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_9_10
-cd O_10_10_D_9_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_9_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_9_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_9_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 9 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_9_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_29_10
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_29_10
-cd O_10_10_D_29_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_29_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_29_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_29_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 29 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_29_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_10
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_49_10
-cd O_10_10_D_49_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 49 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_69_10
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_69_10
-cd O_10_10_D_69_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_69_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_69_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_69_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 69 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_69_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_89_10
-############################
-
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_89_10
-cd O_10_10_D_89_10
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_89_10/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_89_10/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_89_10/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 89 10 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_89_10
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-
-############################
-# O_10_10_D_49_30
-############################
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_49_30
-cd O_10_10_D_49_30
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_30/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_30/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_30/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 49 30 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_30
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_50
-############################
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_49_50
-cd O_10_10_D_49_50
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_50/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_50/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_50/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 49 50 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_50
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_70
-############################
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_49_70
-cd O_10_10_D_49_70
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_70/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_70/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_70/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 49 70 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_70
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-############################
-# O_10_10_D_49_90
-############################
-cd /data3/ruilei/rl/RcvTime_testspace
-mkdir O_10_10_D_49_90
-cd O_10_10_D_49_90
-
-############################
-# prepare iotdb-engine-enableCPVtrue.properties and iotdb-engine-enableCPVfalse.properties
-############################
-./../../tool.sh enable_CPV true ../../iotdb-engine-example.properties
-./../../tool.sh system_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_90/system ../../iotdb-engine-example.properties
-./../../tool.sh data_dirs /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_90/data ../../iotdb-engine-example.properties
-./../../tool.sh wal_dir /data3/ruilei/rl/dataSpace2/RcvTime_O_10_10_D_49_90/wal ../../iotdb-engine-example.properties
-./../../tool.sh timestamp_precision ms ../../iotdb-engine-example.properties
-
-./../../tool.sh unseq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh seq_tsfile_size 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh avg_series_point_number_threshold 1000 ../../iotdb-engine-example.properties
-./../../tool.sh compaction_strategy NO_COMPACTION ../../iotdb-engine-example.properties
-./../../tool.sh enable_unseq_compaction false ../../iotdb-engine-example.properties
-./../../tool.sh page_size_in_byte 1073741824 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_address 0.0.0.0 ../../iotdb-engine-example.properties
-./../../tool.sh rpc_port 6667 ../../iotdb-engine-example.properties
-
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVtrue.properties
-
-./../../tool.sh enable_CPV false ../../iotdb-engine-example.properties
-cp ../../iotdb-engine-example.properties iotdb-engine-enableCPVfalse.properties
-
-############################
-# run write_data.sh
-# java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar filePath deleteFreq deleteLen timeIdx valueIdx
-############################
-cp iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-./start-server.sh &
-sleep 3s
-java -jar /data3/ruilei/rl/RcvTime_testspace/WriteRcvTime-0.12.4.jar /data3/raw_data/rl/RcvTime/RcvTime-O_10_10 49 90 0 1
-sleep 3s
-./stop-server.sh
-sleep 3s
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-
-
-############################
-# run change_interval_experiments.sh for each approach
-# ./../../../query_experiment.sh tqe w approach
-############################
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_90
-mkdir fix
-cd fix
-
-mkdir moc
-cd moc
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 2 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMOC.csv
-
-cd ..
-mkdir mac
-cd mac
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVfalse.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 1 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultMAC.csv
-
-cd ..
-mkdir cpv
-cd cpv
-cp /data3/ruilei/rl/ProcessResult.* .
-cp ../../iotdb-engine-enableCPVtrue.properties /data3/ruilei/rl/iotdb-server-0.12.4/conf/iotdb-engine.properties
-./../../../query_experiment.sh 26461736001 100 3 >> result_3.txt
-java ProcessResult result_3.txt result_3.out ../sumResultCPV.csv
-
-cd ..
-cp /data3/ruilei/rl/SumResultUnify.* .
-java SumResultUnify sumResultMOC.csv sumResultMAC.csv sumResultCPV.csv result.csv
-
-#########################
-# sum results
-# [EXP3]
-# ---- O_0_0_D_0_0
-# ---- O_30_10_D_0_0
-# ---- O_50_10_D_0_0
-# ---- O_70_10_D_0_0
-# ---- O_90_10_D_0_0
-# [EXP4]
-# ---- O_10_10_D_9_10
-# ---- O_10_10_D_29_10
-# ---- O_10_10_D_49_10
-# ---- O_10_10_D_69_10
-# ---- O_10_10_D_89_10
-# [EXP5]
-# ---- O_10_10_D_49_30
-# ---- O_10_10_D_49_50
-# ---- O_10_10_D_49_70
-# ---- O_10_10_D_49_90
-#########################
-# [EXP3]
-cd /data3/ruilei/rl/RcvTime_testspace/O_0_0_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp3.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_30_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp3.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_50_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp3.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_70_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp3.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_90_10_D_0_0
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp3.csv
-
-# [EXP4]
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_9_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp4.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_29_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp4.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp4.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_69_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp4.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_89_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp4.csv
-
-# [EXP5]
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_10
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp5.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_30
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp5.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_50
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp5.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_70
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp5.csv
-
-cd /data3/ruilei/rl/RcvTime_testspace/O_10_10_D_49_90
-cd fix
-cat result.csv >>/data3/ruilei/rl/RcvTime_testspace/exp5.csv
diff --git a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryBallSpeed.java b/example/session/src/main/java/org/apache/iotdb/queryExp/QueryBallSpeed.java
deleted file mode 100644
index 6f95a53..0000000
--- a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryBallSpeed.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.apache.iotdb.queryExp;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.session.SessionDataSet;
-import org.apache.iotdb.tsfile.read.common.RowRecord;
-
-import org.apache.thrift.TException;
-
-public class QueryBallSpeed {
-
- // * (1) min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s)
- // => Don't change the sequence of the above six aggregates!
- // * (2) group by ([tqs,tqe),IntervalLength) => Make sure (tqe-tqs) is divisible by
- // IntervalLength!
- // * (3) NOTE the time unit of interval. Update for different datasets!
- private static final String queryFormat =
- "select min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s) "
- + "from %s "
- + "group by ([%d, %d), %dns)"; // note this "ns" time precision
-
- private static final String queryFormat_UDF =
- "select M4(%1$s,'tqs'='%3$d','tqe'='%4$d','w'='%5$d') from %2$s where time>=%3$d and time<%4$d";
-
- public static Session session;
-
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, TException {
- // fixed time series path
- String measurement = "s6";
- String device = "root.game";
- // used to bound tqs random position
- long dataMinTime = 0;
- long dataMaxTime = 617426057627L; // 617426057626+1
-
- // 实验自变量1:[tqs,tqe) range length, i.e., tqe-tqs
- long range = Long.parseLong(args[0]);
- // 实验自变量2:w数量
- int intervalNum = Integer.parseInt(args[1]);
- // 实验自变量3:方法
- // 1: MAC, 2: MOC, 3: CPV
- int approach = Integer.parseInt(args[2]);
- if (approach != 1 && approach != 2 && approach != 3) {
- throw new TException("Wrong input parameter approach!");
- }
- if (approach != 1) {
- // MOC and CPV sql are the same sql: queryFormat.
- // Set the server parameter in iotdb-engine.properties: enable_CPV=true for CPV, false for
- // MOC.
- if (approach == 2) { // MOC
- System.out.println(
- "MAKE SURE you have set the enable_CPV as false in `iotdb-engine.properties` for MOC!");
- } else { // CPV
- System.out.println(
- "MAKE SURE you have set the enable_CPV as true in `iotdb-engine.properties` for CPV!");
- }
- }
-
- long minTime;
- long maxTime;
- long interval;
- if (range >= (dataMaxTime - dataMinTime)) {
- minTime = dataMinTime;
- interval = (long) Math.ceil((double) (dataMaxTime - dataMinTime) / intervalNum);
- } else {
- // randomize between [dataMinTime, dataMaxTime-range]
- minTime =
- (long) Math.ceil(dataMinTime + Math.random() * (dataMaxTime - range - dataMinTime + 1));
- interval = (long) Math.ceil((double) range / intervalNum);
- }
- maxTime = minTime + interval * intervalNum;
-
- session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
- session.setFetchSize(100000); // this is important. Set it big to avoid multiple fetch.
-
- String sql;
- if (approach == 1) { // MAC UDF
- sql =
- String.format(queryFormat_UDF, measurement, device, minTime, maxTime, intervalNum); // MAC
- } else {
- // MOC and CPV sql use the same sql queryFormat.
- sql =
- String.format(
- queryFormat,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- device,
- minTime,
- maxTime,
- interval);
- }
-
- SessionDataSet dataSet;
- dataSet = session.executeQueryStatement(sql);
- while (dataSet.hasNext()) {
- RowRecord r = dataSet.next();
- }
- session.executeNonQueryStatement("clear cache");
- dataSet = session.executeFinish();
- String info = dataSet.getFinishResult();
- System.out.println(info);
- dataSet.closeOperationHandle();
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryKOB.java b/example/session/src/main/java/org/apache/iotdb/queryExp/QueryKOB.java
deleted file mode 100644
index e935671..0000000
--- a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryKOB.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.apache.iotdb.queryExp;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.session.SessionDataSet;
-import org.apache.iotdb.tsfile.read.common.RowRecord;
-
-import org.apache.thrift.TException;
-
-public class QueryKOB {
-
- // * (1) min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s)
- // => Don't change the sequence of the above six aggregates!
- // * (2) group by ([tqs,tqe),IntervalLength) => Make sure (tqe-tqs) is divisible by
- // IntervalLength!
- // * (3) NOTE the time unit of interval. Update for different datasets!
- private static final String queryFormat =
- "select min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s) "
- + "from %s "
- + "group by ([%d, %d), %dms)"; // note this "ms" time precision
-
- private static final String queryFormat_UDF =
- "select M4(%1$s,'tqs'='%3$d','tqe'='%4$d','w'='%5$d') from %2$s where time>=%3$d and time<%4$d";
-
- public static Session session;
-
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, TException {
- // fixed time series path
- String measurement = "KOB_0002_00_67"; // [[update]]
- String device = "root.kobelco.trans.03.1090001603.2401604"; // [[update]]
- // used to bound tqs random position
- long dataMinTime = 1616805035973L; // [[update]]
- long dataMaxTime = 1627380839564L; // 1627380839563+1 // [[update]]
-
- // 实验自变量1:[tqs,tqe) range length, i.e., tqe-tqs
- long range = Long.parseLong(args[0]);
- // 实验自变量2:w数量
- int intervalNum = Integer.parseInt(args[1]);
- // 实验自变量3:方法
- // 1: MAC, 2: MOC, 3: CPV
- int approach = Integer.parseInt(args[2]);
- if (approach != 1 && approach != 2 && approach != 3) {
- throw new TException("Wrong input parameter approach!");
- }
- if (approach != 1) {
- // MOC and CPV sql are the same sql: queryFormat.
- // Set the server parameter in iotdb-engine.properties: enable_CPV=true for CPV, false for
- // MOC.
- if (approach == 2) { // MOC
- System.out.println(
- "MAKE SURE you have set the enable_CPV as false in `iotdb-engine.properties` for MOC!");
- } else { // CPV
- System.out.println(
- "MAKE SURE you have set the enable_CPV as true in `iotdb-engine.properties` for CPV!");
- }
- }
-
- long minTime;
- long maxTime;
- long interval;
- if (range >= (dataMaxTime - dataMinTime)) {
- minTime = dataMinTime;
- interval = (long) Math.ceil((double) (dataMaxTime - dataMinTime) / intervalNum);
- } else {
- // randomize between [dataMinTime, dataMaxTime-range]
- minTime =
- (long) Math.ceil(dataMinTime + Math.random() * (dataMaxTime - range - dataMinTime + 1));
- interval = (long) Math.ceil((double) range / intervalNum);
- }
- maxTime = minTime + interval * intervalNum;
-
- session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
- session.setFetchSize(100000); // this is important. Set it big to avoid multiple fetch.
-
- String sql;
- if (approach == 1) { // MAC UDF
- sql =
- String.format(queryFormat_UDF, measurement, device, minTime, maxTime, intervalNum); // MAC
- } else {
- // MOC and CPV sql use the same sql queryFormat.
- sql =
- String.format(
- queryFormat,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- device,
- minTime,
- maxTime,
- interval);
- }
-
- SessionDataSet dataSet;
- dataSet = session.executeQueryStatement(sql);
- while (dataSet.hasNext()) {
- RowRecord r = dataSet.next();
- }
- session.executeNonQueryStatement("clear cache");
- dataSet = session.executeFinish();
- String info = dataSet.getFinishResult();
- System.out.println(info);
- dataSet.closeOperationHandle();
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryMF03.java b/example/session/src/main/java/org/apache/iotdb/queryExp/QueryMF03.java
deleted file mode 100644
index bc2d6b2..0000000
--- a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryMF03.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.apache.iotdb.queryExp;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.session.SessionDataSet;
-import org.apache.iotdb.tsfile.read.common.RowRecord;
-
-import org.apache.thrift.TException;
-
-public class QueryMF03 {
-
- // * (1) min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s)
- // => Don't change the sequence of the above six aggregates!
- // * (2) group by ([tqs,tqe),IntervalLength) => Make sure (tqe-tqs) is divisible by
- // IntervalLength!
- // * (3) NOTE the time unit of interval. Update for different datasets!
- private static final String queryFormat =
- "select min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s) "
- + "from %s "
- + "group by ([%d, %d), %dns)"; // note this "ns" time precision
-
- private static final String queryFormat_UDF =
- "select M4(%1$s,'tqs'='%3$d','tqe'='%4$d','w'='%5$d') from %2$s where time>=%3$d and time<%4$d";
-
- public static Session session;
-
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, TException {
- // fixed time series path
- String measurement = "mf03"; // [[update]]
- String device = "root.debs2012"; // [[update]]
- // used to bound tqs random position
- long dataMinTime = 1329955200008812200L;
- long dataMaxTime = 1329965999991045201L; // 617426057626+1
-
- // 实验自变量1:[tqs,tqe) range length, i.e., tqe-tqs
- long range = Long.parseLong(args[0]);
- // 实验自变量2:w数量
- int intervalNum = Integer.parseInt(args[1]);
- // 实验自变量3:方法
- // 1: MAC, 2: MOC, 3: CPV
- int approach = Integer.parseInt(args[2]);
- if (approach != 1 && approach != 2 && approach != 3) {
- throw new TException("Wrong input parameter approach!");
- }
- if (approach != 1) {
- // MOC and CPV sql are the same sql: queryFormat.
- // Set the server parameter in iotdb-engine.properties: enable_CPV=true for CPV, false for
- // MOC.
- if (approach == 2) { // MOC
- System.out.println(
- "MAKE SURE you have set the enable_CPV as false in `iotdb-engine.properties` for MOC!");
- } else { // CPV
- System.out.println(
- "MAKE SURE you have set the enable_CPV as true in `iotdb-engine.properties` for CPV!");
- }
- }
-
- long minTime;
- long maxTime;
- long interval;
- if (range >= (dataMaxTime - dataMinTime)) {
- minTime = dataMinTime;
- interval = (long) Math.ceil((double) (dataMaxTime - dataMinTime) / intervalNum);
- } else {
- // randomize between [dataMinTime, dataMaxTime-range]
- minTime =
- (long) Math.ceil(dataMinTime + Math.random() * (dataMaxTime - range - dataMinTime + 1));
- interval = (long) Math.ceil((double) range / intervalNum);
- }
- maxTime = minTime + interval * intervalNum;
-
- session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
- session.setFetchSize(100000); // this is important. Set it big to avoid multiple fetch.
-
- String sql;
- if (approach == 1) { // MAC UDF
- sql =
- String.format(queryFormat_UDF, measurement, device, minTime, maxTime, intervalNum); // MAC
- } else {
- // MOC and CPV sql use the same sql queryFormat.
- sql =
- String.format(
- queryFormat,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- device,
- minTime,
- maxTime,
- interval);
- }
-
- SessionDataSet dataSet;
- dataSet = session.executeQueryStatement(sql);
- while (dataSet.hasNext()) {
- RowRecord r = dataSet.next();
- }
- session.executeNonQueryStatement("clear cache");
- dataSet = session.executeFinish();
- String info = dataSet.getFinishResult();
- System.out.println(info);
- dataSet.closeOperationHandle();
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryRcvTime.java b/example/session/src/main/java/org/apache/iotdb/queryExp/QueryRcvTime.java
deleted file mode 100644
index ce692e1..0000000
--- a/example/session/src/main/java/org/apache/iotdb/queryExp/QueryRcvTime.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.apache.iotdb.queryExp;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.session.SessionDataSet;
-import org.apache.iotdb.tsfile.read.common.RowRecord;
-
-import org.apache.thrift.TException;
-
-public class QueryRcvTime {
-
- // * (1) min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s)
- // => Don't change the sequence of the above six aggregates!
- // * (2) group by ([tqs,tqe),IntervalLength) => Make sure (tqe-tqs) is divisible by
- // IntervalLength!
- // * (3) NOTE the time unit of interval. Update for different datasets!
- private static final String queryFormat =
- "select min_time(%s), max_time(%s), first_value(%s), last_value(%s), min_value(%s), max_value(%s) "
- + "from %s "
- + "group by ([%d, %d), %dms)"; // note this "ms" time precision
-
- private static final String queryFormat_UDF =
- "select M4(%1$s,'tqs'='%3$d','tqe'='%4$d','w'='%5$d') from %2$s where time>=%3$d and time<%4$d";
-
- public static Session session;
-
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, TException {
- // fixed time series path
- String measurement = "RcvTime"; // [[update]]
- String device = "root.sg1"; // [[update]]
- // used to bound tqs random position
- long dataMinTime = 1616194494000L; // [[update]]
- long dataMaxTime = 1642656230001L; // 617426057626+1 // [[update]]
-
- // 实验自变量1:[tqs,tqe) range length, i.e., tqe-tqs
- long range = Long.parseLong(args[0]);
- // 实验自变量2:w数量
- int intervalNum = Integer.parseInt(args[1]);
- // 实验自变量3:方法
- // 1: MAC, 2: MOC, 3: CPV
- int approach = Integer.parseInt(args[2]);
- if (approach != 1 && approach != 2 && approach != 3) {
- throw new TException("Wrong input parameter approach!");
- }
- if (approach != 1) {
- // MOC and CPV sql are the same sql: queryFormat.
- // Set the server parameter in iotdb-engine.properties: enable_CPV=true for CPV, false for
- // MOC.
- if (approach == 2) { // MOC
- System.out.println(
- "MAKE SURE you have set the enable_CPV as false in `iotdb-engine.properties` for MOC!");
- } else { // CPV
- System.out.println(
- "MAKE SURE you have set the enable_CPV as true in `iotdb-engine.properties` for CPV!");
- }
- }
-
- long minTime;
- long maxTime;
- long interval;
- if (range >= (dataMaxTime - dataMinTime)) {
- minTime = dataMinTime;
- interval = (long) Math.ceil((double) (dataMaxTime - dataMinTime) / intervalNum);
- } else {
- // randomize between [dataMinTime, dataMaxTime-range]
- minTime =
- (long) Math.ceil(dataMinTime + Math.random() * (dataMaxTime - range - dataMinTime + 1));
- interval = (long) Math.ceil((double) range / intervalNum);
- }
- maxTime = minTime + interval * intervalNum;
-
- session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
- session.setFetchSize(100000); // this is important. Set it big to avoid multiple fetch.
-
- String sql;
- if (approach == 1) { // MAC UDF
- sql =
- String.format(queryFormat_UDF, measurement, device, minTime, maxTime, intervalNum); // MAC
- } else {
- // MOC and CPV sql use the same sql queryFormat.
- sql =
- String.format(
- queryFormat,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- measurement,
- device,
- minTime,
- maxTime,
- interval);
- }
-
- SessionDataSet dataSet;
- dataSet = session.executeQueryStatement(sql);
- while (dataSet.hasNext()) {
- RowRecord r = dataSet.next();
- }
- session.executeNonQueryStatement("clear cache");
- dataSet = session.executeFinish();
- String info = dataSet.getFinishResult();
- System.out.println(info);
- dataSet.closeOperationHandle();
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/AnalyzeChunkInTsFile.java b/example/session/src/main/java/org/apache/iotdb/tools/AnalyzeChunkInTsFile.java
deleted file mode 100644
index 2812d67..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/AnalyzeChunkInTsFile.java
+++ /dev/null
@@ -1,39 +0,0 @@
-package org.apache.iotdb.tools;
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-public class AnalyzeChunkInTsFile {
-
- // public static final String TSFILE_AFTER_SKETCH=
- // "D:\\exp\\fullGame1_maxDelay=1s\\TsFile_sketch_view_unseq.txt";
- // public static final String OUTPUT_FILE = "chunk_analysis_unseq.csv";
-
- public static void main(String[] args) throws IOException {
- String TSFILE_AFTER_SKETCH = args[0];
- String OUTPUT_FILE = args[1];
-
- BufferedReader reader = new BufferedReader(new FileReader(TSFILE_AFTER_SKETCH));
- PrintWriter writer = new PrintWriter(new FileWriter(OUTPUT_FILE));
-
- String line = null;
- boolean toRead = false;
-
- while ((line = reader.readLine()) != null) {
- if (toRead) {
- String[] tmp1 = line.split("endTime: ");
- long startTime = Long.parseLong(tmp1[0].split("startTime: ")[1].trim());
- long endTime = Long.parseLong(tmp1[1].split("count: ")[0].trim());
- writer.write(startTime + "," + endTime + "\n");
- toRead = false;
- } else if (line.contains("[Chunk] of")) {
- toRead = true;
- }
- }
- reader.close();
- writer.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/ProcessResult.java b/example/session/src/main/java/org/apache/iotdb/tools/ProcessResult.java
deleted file mode 100644
index 6f637ce..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/ProcessResult.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package org.apache.iotdb.tools;
-
-import java.io.*;
-
-public class ProcessResult {
-
- public static void main(String[] args) throws IOException {
-
- String inFilePath = args[0];
- String outFilePath = args[1];
- String sumOutFilePath = args[2];
-
- BufferedReader reader = new BufferedReader(new FileReader(inFilePath));
- FileWriter writer = new FileWriter(outFilePath);
- FileWriter sumWriter = new FileWriter(sumOutFilePath, true);
- String readLine = null;
- boolean firstTime = true;
- int metaNum = 0, dataNum = 0, readMemChunkNum = 0;
- long metaTime = 0;
- long dataTime = 0;
- long totalTime = 0;
- long readMemChunkTime = 0;
- int counter = 0;
- while ((readLine = reader.readLine()) != null) {
- if (readLine.startsWith("select")) {
- String[] values = readLine.split("\t");
- if (firstTime) {
- metaNum = Integer.parseInt(values[4]);
- dataNum = Integer.parseInt(values[8]);
- readMemChunkNum = Integer.parseInt(values[12]);
- }
- metaTime += Long.parseLong(values[2]);
- dataTime += Long.parseLong(values[6]);
- readMemChunkTime += Long.parseLong(values[10]);
- totalTime += Long.parseLong(values[14]);
- counter++;
- writer.write(readLine + "\n");
- }
- }
-
- writer.write(
- "meta_num\t avg_meta\t data_num\t avg_data\t read_mem_chunk_num\t avg_read_mem_chunk_time\t avg_total\n"
- + metaNum
- + "\t"
- + (double) metaTime / 1000000 / counter
- + "\t"
- + dataNum
- + "\t"
- + (double) dataTime / 1000000 / counter
- + "\t"
- + readMemChunkNum
- + "\t"
- + (double) readMemChunkTime / 1000000 / counter
- + "\t"
- + (double) totalTime / 1000000 / counter);
-
- sumWriter.write(
- metaNum
- + ","
- + (double) metaTime / 1000000 / counter
- + ","
- + dataNum
- + ","
- + (double) dataTime / 1000000 / counter
- + ","
- + readMemChunkNum
- + ","
- + (double) readMemChunkTime / 1000000 / counter
- + ","
- + (double) totalTime / 1000000 / counter
- + "\n");
-
- reader.close();
- writer.close();
- sumWriter.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/QueryBallSpeed-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/QueryBallSpeed-0.12.4.jar
deleted file mode 100644
index 7b4c9dc..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/QueryBallSpeed-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/QueryKOB-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/QueryKOB-0.12.4.jar
deleted file mode 100644
index a9ef52e..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/QueryKOB-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/QueryMF03-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/QueryMF03-0.12.4.jar
deleted file mode 100644
index 1b7ecba..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/QueryMF03-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/QueryRcvTime-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/QueryRcvTime-0.12.4.jar
deleted file mode 100644
index c21d605..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/QueryRcvTime-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/SumResultUnify.java b/example/session/src/main/java/org/apache/iotdb/tools/SumResultUnify.java
deleted file mode 100644
index 0e1e6e1..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/SumResultUnify.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.apache.iotdb.tools;
-
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-public class SumResultUnify {
-
- public static void main(String[] args) throws IOException {
- String moc = args[0]; // sumResultMOC.csv
- String mac = args[1]; // sumResultMAC.csv
- String cpv = args[2]; // sumResultCPV.csv
- String out = args[3];
-
- BufferedReader mocReader = new BufferedReader(new FileReader(moc));
- BufferedReader macReader = new BufferedReader(new FileReader(mac));
- BufferedReader cpvReader = new BufferedReader(new FileReader(cpv));
- PrintWriter printWriter = new PrintWriter(new FileWriter(out));
- String mocLine;
- String macLine;
- String cpvLine;
- String appendLine;
- while ((mocLine = mocReader.readLine()) != null) {
- macLine = macReader.readLine();
- cpvLine = cpvReader.readLine();
- appendLine = mocLine + "," + macLine + "," + cpvLine;
- printWriter.println(appendLine);
- }
- printWriter.close();
- mocReader.close();
- macReader.close();
- cpvReader.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/WriteBallSpeed-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/WriteBallSpeed-0.12.4.jar
deleted file mode 100644
index b969789..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/WriteBallSpeed-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/WriteKOB-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/WriteKOB-0.12.4.jar
deleted file mode 100644
index 7731376..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/WriteKOB-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/WriteMF03-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/WriteMF03-0.12.4.jar
deleted file mode 100644
index 9c6e46f..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/WriteMF03-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/WriteRcvTime-0.12.4.jar b/example/session/src/main/java/org/apache/iotdb/tools/WriteRcvTime-0.12.4.jar
deleted file mode 100644
index 9dbc7bc..0000000
Binary files a/example/session/src/main/java/org/apache/iotdb/tools/WriteRcvTime-0.12.4.jar and /dev/null differ
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/iotdb-engine-example.properties b/example/session/src/main/java/org/apache/iotdb/tools/iotdb-engine-example.properties
deleted file mode 100644
index 2f0d2c9..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/iotdb-engine-example.properties
+++ /dev/null
@@ -1,740 +0,0 @@
-#
-# 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.
-#
-
-####################
-### enable CPV
-####################
-enable_CPV=false
-
-####################
-### Web Page Configuration
-####################
-
-# enable_metric_service=false
-
-# metrics_port=8181
-
-# query_cache_size_in_metric=50
-
-####################
-### RPC Configuration
-####################
-
-rpc_address=0.0.0.0
-
-rpc_port=6667
-
-# rpc_thrift_compression_enable=false
-
-# if true, a snappy based compression method will be called before sending data by the network
-# rpc_advanced_compression_enable=false
-
-# rpc_max_concurrent_client_num=65535
-
-# thrift max frame size, 512MB by default
-# thrift_max_frame_size=536870912
-
-# thrift init buffer size
-# thrift_init_buffer_size=1024
-
-####################
-### Write Ahead Log Configuration
-####################
-
-# Is insert ahead log enable
-# enable_wal=true
-
-# Add a switch to drop ouf-of-order data
-# Out-of-order data will impact the aggregation query a lot. Users may not care about discarding some out-of-order data.
-# enable_discard_out_of_order_data=false
-
-# When a certain amount of insert ahead log is reached, it will be flushed to disk
-# It is possible to lose at most flush_wal_threshold operations
-# flush_wal_threshold=10000
-
-# The cycle when insert ahead log is periodically forced to be written to disk(in milliseconds)
-# If force_wal_period_in_ms = 0 it means force insert ahead log to be written to disk after each refreshment
-# Set this parameter to 0 may slow down the ingestion on slow disk.
-# force_wal_period_in_ms=100
-
-####################
-### Directory Configuration
-####################
-
-# system dir
-# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/system).
-# If it is absolute, system will save the data in exact location it points to.
-# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
-# For windows platform
-# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
-# system_dir=data\\system
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-system_dir=/data3/ruilei/rl/dataSpace/recTime_O_10_10_D_0_0/system
-
-# data dirs
-# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data/data).
-# If it is absolute, system will save the data in exact location it points to.
-# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
-# Note: If data_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
-# For windows platform
-# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
-# data_dirs=data\\data
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-data_dirs=/data3/ruilei/rl/dataSpace/recTime_O_10_10_D_0_0/data
-
-# mult_dir_strategy
-# The strategy is used to choose a directory from tsfile_dir for the system to store a new tsfile.
-# System provides three strategies to choose from, or user can create his own strategy by extending org.apache.iotdb.db.conf.directories.strategy.DirectoryStrategy.
-# The info of the three strategies are as follows:
-# 1. SequenceStrategy: the system will choose the directory in sequence.
-# 2. MaxDiskUsableSpaceFirstStrategy: the system will choose the directory whose disk has the maximum space.
-# 3. MinFolderOccupiedSpaceFirstStrategy: the system will choose the directory whose folder has the minimum occupied space.
-# 4. RandomOnDiskUsableSpaceStrategy: the system will randomly choose the directory based on usable space of disks. The more usable space, the greater the chance of being chosen;
-# Set SequenceStrategy,MaxDiskUsableSpaceFirstStrategy and MinFolderOccupiedSpaceFirstStrategy to apply the corresponding strategy.
-# If this property is unset, system will use MaxDiskUsableSpaceFirstStrategy as default strategy.
-# For this property, fully-qualified class name (include package name) and simple class name are both acceptable.
-# multi_dir_strategy=MaxDiskUsableSpaceFirstStrategy
-
-
-# wal dir
-# If this property is unset, system will save the data in the default relative path directory under the IoTDB folder(i.e., %IOTDB_HOME%/data).
-# If it is absolute, system will save the data in the exact location it points to.
-# If it is relative, system will save the data in the relative path directory it indicates under the IoTDB folder.
-# Note: If wal_dir is assigned an empty string(i.e.,zero-size), it will be handled as a relative path.
-# For windows platform
-# If its prefix is a drive specifier followed by "\\", or if its prefix is "\\\\", then the path is absolute. Otherwise, it is relative.
-# wal_dir=data\\wal
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-wal_dir=/data3/ruilei/rl/dataSpace/recTime_O_10_10_D_0_0/wal
-
-# TSFile storage file system. Currently, Tsfile are supported to be stored in LOCAL file system or HDFS.
-# tsfile_storage_fs=LOCAL
-
-# If using HDFS, the absolute file path of Hadoop core-site.xml should be configured
-# core_site_path=/etc/hadoop/conf/core-site.xml
-
-# If using HDFS, the absolute file path of Hadoop hdfs-site.xml should be configured
-# hdfs_site_path=/etc/hadoop/conf/hdfs-site.xml
-
-# If using HDFS, hadoop ip can be configured. If there are more than one hdfs_ip, Hadoop HA is used
-# hdfs_ip=localhost
-
-# If using HDFS, hadoop port can be configured
-# hdfs_port=9000
-
-# If there are more than one hdfs_ip, Hadoop HA is used. Below are configuration for HA
-# If using Hadoop HA, nameservices of hdfs can be configured
-# dfs_nameservices=hdfsnamespace
-
-# If using Hadoop HA, namenodes under dfs nameservices can be configured
-# dfs_ha_namenodes=nn1,nn2
-
-# If using Hadoop HA, automatic failover can be enabled or disabled
-# dfs_ha_automatic_failover_enabled=true
-
-# If using Hadoop HA and enabling automatic failover, the proxy provider can be configured
-# dfs_client_failover_proxy_provider=org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider
-
-# If using kerberos to authenticate hdfs, this should be true
-# hdfs_use_kerberos=false
-
-# Full path of kerberos keytab file
-# kerberos_keytab_file_path=/path
-
-# Kerberos pricipal
-# kerberos_principal=your principal
-
-
-####################
-### Storage Engine Configuration
-####################
-
-# Use this value to set timestamp precision as "ms", "us" or "ns".
-# Once the precision is been set, it can not be changed.
-timestamp_precision=ms
-
-# Default TTL for storage groups that are not set TTL by statements, in ms. If not set (default),
-# the TTL will be unlimited.
-# Notice: if this property is changed, previous created storage group which are not set TTL will
-# also be affected. And negative values are accepted, which means you can only insert future
-# data.
-# default_ttl=36000000
-
-# The size of the log buffer in each log node (in bytes). Due to the double buffer mechanism,
-# if WAL is enabled and the size of the inserted plan is greater than one-half of this parameter,
-# then the insert plan will be rejected by WAL.
-# If it sets a value smaller than 0, use the default value 16777216
-# wal_buffer_size=16777216
-
-# When a unSequence TsFile's file size (in byte) exceeds this, the TsFile is forced closed.
-# It may cause memTable size smaller if it is a large value
-unseq_tsfile_size=1073741824
-
-# When a sequence TsFile's file size (in byte) exceeds this, the TsFile is forced closed.
-# It may cause memTable size smaller if it is a large value
-seq_tsfile_size=1073741824
-
-# Size of log buffer in each metadata operation plan(in byte).
-# If the size of a metadata operation plan is larger than this parameter, then it will be rejected by MManager
-# If it sets a value smaller than 0, use the default value 1024*1024
-# mlog_buffer_size=1048576
-
-# When a memTable's size (in byte) exceeds this, the memtable is flushed to disk. The default threshold is 1 GB.
-# memtable_size_threshold=1073741824
-
-# Whether to timed flush sequence tsfiles' memtables.
-# Datatype: boolean
-# enable_timed_flush_seq_memtable=false
-
-# If a memTable's created time is older than current time minus this, the memtable will be flushed to disk.
-# Only check sequence tsfiles' memtables.
-# The default flush interval is 60 * 60 * 1000. (unit: ms)
-# Datatype: long
-# seq_memtable_flush_interval_in_ms=3600000
-
-# The interval to check whether sequence memtables need flushing.
-# The default flush check interval is 10 * 60 * 1000. (unit: ms)
-# Datatype: long
-# seq_memtable_flush_check_interval_in_ms=600000
-
-# Whether to timed flush unsequence tsfiles' memtables.
-# Datatype: boolean
-# enable_timed_flush_unseq_memtable=true
-
-# If a memTable's created time is older than current time minus this, the memtable will be flushed to disk.
-# Only check unsequence tsfiles' memtables.
-# The default flush interval is 60 * 60 * 1000. (unit: ms)
-# Datatype: long
-# unseq_memtable_flush_interval_in_ms=3600000
-
-# The interval to check whether unsequence memtables need flushing.
-# The default flush check interval is 10 * 60 * 1000. (unit: ms)
-# Datatype: long
-# unseq_memtable_flush_check_interval_in_ms=600000
-
-# Whether to timed close tsfiles.
-# Datatype: boolean
-# enable_timed_close_tsfile=true
-
-# If a TsfileProcessor's last working memtable flush time is older than current time minus this and its working memtable is null, the TsfileProcessor will be closed.
-# The default close interval is 60 * 60 * 1000. (unit: ms)
-# Datatype: long
-# close_tsfile_interval_after_flushing_in_ms=3600000
-
-# The interval to check whether tsfiles need closing.
-# The default close check interval is 10 * 60 * 1000. (unit: ms)
-# Datatype: long
-# close_tsfile_check_interval_in_ms=600000
-
-# When the average point number of timeseries in memtable exceeds this, the memtable is flushed to disk. The default threshold is 10000.
-avg_series_point_number_threshold=10000
-
-# How many threads can concurrently flush. When <= 0, use CPU core number.
-# concurrent_flush_thread=0
-
-# How many threads can concurrently query. When <= 0, use CPU core number.
-# concurrent_query_thread=8
-
-# whether take over the memory management by IoTDB rather than JVM when serializing memtable as bytes in memory
-# (i.e., whether use ChunkBufferPool), value true, false
-# chunk_buffer_pool_enable=false
-
-# The amount of data iterate each time in server (the number of data strips, that is, the number of different timestamps.)
-# batch_size=100000
-
-# max size for tag and attribute of one time series
-# the unit is byte
-# tag_attribute_total_size=700
-
-# interval num for tag and attribute records when force flushing to disk
-# When a certain amount of tag and attribute records is reached, they will be force flushed to disk
-# It is possible to lose at most tag_attribute_flush_interval records
-# tag_attribute_flush_interval=1000
-
-# In one insert (one device, one timestamp, multiple measurements),
-# if enable partial insert, one measurement failure will not impact other measurements
-# enable_partial_insert=true
-
-# Whether to enable MTree snapshot. Default false from 0.11.0 on.
-# enable_mtree_snapshot=false
-
-# The least interval line numbers of mlog.txt when creating a checkpoint and saving snapshot of MTree.
-# Only take effect when enable_mtree_snapshot=true. Unit: line numbers
-# mtree_snapshot_interval=100000
-
-# Threshold interval time of MTree modification. Unit: second. Default: 1 hour(3600 seconds)
-# If the last modification time is less than this threshold, MTree snapshot will not be created
-# Only take effect when enable_mtree_snapshot=true.
-# mtree_snapshot_threshold_time=3600
-
-# number of virtual storage groups per user-defined storage group
-# a virtual storage group is the unit of parallelism in memory as all ingestions in one virtual storage group are serialized
-# recommended value is [virtual storage group number] = [CPU core number] / [user-defined storage group number]
-# virtual_storage_group_num = 1
-
-# Level of TimeIndex, which records the start time and end time of TsFileResource. Currently,
-# DEVICE_TIME_INDEX and FILE_TIME_INDEX are supported, and could not be changed after first set.
-# time_index_level=DEVICE_TIME_INDEX
-
-####################
-### Memory Control Configuration
-####################
-
-# Whether to enable memory control
-# enable_mem_control=true
-
-# Memory Allocation Ratio: Write, Read, Schema and Free Memory.
-# The parameter form is a:b:c:d, where a, b, c and d are integers. for example: 1:1:1:1 , 6:2:1:1
-# If you have high level of writing pressure and low level of reading pressure, please adjust it to for example 6:1:1:2
-# write_read_schema_free_memory_proportion=4:3:1:2
-
-# primitive array size (length of each array) in array pool
-# primitive_array_size=32
-
-# Ratio of write memory for invoking flush disk, 0.4 by default
-# If you have extremely high write load (like batch=1000), it can be set lower than the default value like 0.2
-# flush_proportion=0.4
-
-# Ratio of write memory allocated for buffered arrays, 0.6 by default
-# buffered_arrays_memory_proportion=0.6
-
-# Ratio of write memory for rejecting insertion, 0.8 by default
-# If you have extremely high write load (like batch=1000) and the physical memory size is large enough,
-# it can be set higher than the default value like 0.9
-# reject_proportion=0.8
-
-# If memory (in byte) of storage group increased more than this threshold, report to system. The default value is 16MB
-# storage_group_report_threshold=16777216
-
-# allowed max numbers of deduplicated path in one query
-# it's just an advised value, the real limitation will be the smaller one between this and the one we calculated
-# max_deduplicated_path_num=1000
-
-# When an inserting is rejected, waiting period (in ms) to check system again, 50 by default.
-# If the insertion has been rejected and the read load is low, it can be set larger.
-# check_period_when_insert_blocked=50
-
-# When the waiting time (in ms) of an inserting exceeds this, throw an exception. 10000 by default.
-# If the insertion has been rejected and the read load is low, it can be set larger
-# max_waiting_time_when_insert_blocked=10000
-
-# estimated metadata size (in byte) of one timeseries in Mtree
-# estimated_series_size=300
-
-# size of ioTaskQueue. The default value is 10
-# io_task_queue_size_for_flushing=10
-
-####################
-### Upgrade Configurations
-####################
-
-# When there exists old version(0.9.x/v1) data, how many thread will be set up to perform upgrade tasks, 1 by default.
-# Set to 1 when less than or equal to 0.
-# upgrade_thread_num=1
-
-
-####################
-### Query Configurations
-####################
-
-# the default time period that used in fill query, -1 by default means infinite past time, in ms
-# default_fill_interval=-1
-
-# The max executing time of query. unit: ms
-# query_timeout_threshold=60000
-
-####################
-### Merge Configurations
-####################
-# LEVEL_COMPACTION, NO_COMPACTION
-compaction_strategy=NO_COMPACTION
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# Whether to merge unseq files into seq files or not.
-enable_unseq_compaction=false
-
-# Start compaction task at this delay, unit is ms
-# compaction_interval=30000
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# The max seq file num of each level.
-# When the num of files in one level exceeds this,
-# the files in this level will merge to one and put to upper level.
-# seq_file_num_in_each_level=6
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# The max num of seq level.
-# seq_level_num=3
-
-# Works when compaction_strategy is LEVEL_COMPACTION.
-# The max ujseq file num of each level.
-# When the num of files in one level exceeds this,
-# the files in this level will merge to one and put to upper level.
-# unseq_file_num_in_each_level=10
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# The max num of unseq level.
-# unseq_level_num=1
-
-# Works when compaction_strategy is LEVEL_COMPACTION.
-# The max open file num in each unseq compaction task.
-# We use the unseq file num as the open file num
-# This parameters have to be much smaller than the permitted max open file num of each process controlled by operator system(65535 in most system)
-# Datatype: int
-# max_select_unseq_file_num_in_each_unseq_compaction=2000
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# When the average point number of chunks in the target file reaches this, merge the file to the top level.
-# During a merge, if a chunk with less number of points than this parameter, the chunk will be
-# merged with its succeeding chunks even if it is not overflowed, until the merged chunks reach
-# this threshold and the new chunk will be flushed.
-# When less than 0, this mechanism is disabled.
-# merge_chunk_point_number=100000
-
-# Works when the compaction_strategy is LEVEL_COMPACTION.
-# When point number of a page reaches this, use "append merge" instead of "deserialize merge".
-# merge_page_point_number=100
-
-# How many thread will be used to perform merge task
-# Datatype: int
-# merge_thread_num=1
-
-# How many threads will be set up to perform unseq merge chunk sub-tasks, 4 by default.
-# Set to 1 when less than or equal to 0.
-# merge_chunk_subthread_num=4
-
-# If one merge file selection runs for more than this time, it will be ended and its current
-# selection will be used as final selection. Unit: millis.
-# When < 0, it means time is unbounded.
-# merge_fileSelection_time_budget=30000
-
-# How much memory may be used in ONE merge task (in byte), 10% of maximum JVM memory by default.
-# This is only a rough estimation, starting from a relatively small value to avoid OOM.
-# Each new merge thread may take such memory, so merge_thread_num * merge_memory_budget is the
-# total memory estimation of merge.
-# merge_memory_budget=2147483648
-
-# When set to true, if some crashed merges are detected during system rebooting, such merges will
-# be continued, otherwise, the unfinished parts of such merges will not be continued while the
-# finished parts still remains as they are.
-# If you are feeling the rebooting is too slow, set this to false, false by default
-# continue_merge_after_reboot=false
-
-# When set to true, all unseq merges becomes full merge (the whole SeqFiles are re-written despite how
-# much they are overflowed). This may increase merge overhead depending on how much the SeqFiles
-# are overflowed.
-# force_full_merge=true
-
-# How many threads will be set up to perform compaction, 10 by default.
-# Set to 1 when less than or equal to 0.
-# compaction_thread_num=10
-
-# The limit of write throughput merge can reach per second
-# merge_write_throughput_mb_per_sec=8
-
-####################
-### Metadata Cache Configuration
-####################
-
-# whether to cache meta data(ChunkMetadata and TimeSeriesMetadata) or not.
-# meta_data_cache_enable=true
-# Read memory Allocation Ratio: ChunkCache, TimeSeriesMetadataCache, memory used for constructing QueryDataSet and Free Memory Used in Query.
-# The parameter form is a:b:c:d, where a, b, c and d are integers. for example: 1:1:1:1 , 1:2:3:4
-# chunk_timeseriesmeta_free_memory_proportion=1:2:3:4
-
-# cache size for MManager.
-# This cache is used to improve insert speed where all path check and TSDataType will be cached in MManager with corresponding Path.
-# metadata_node_cache_size=300000
-
-####################
-### LAST Cache Configuration
-####################
-
-# Whether to enable LAST cache
-# enable_last_cache=true
-
-####################
-### Statistics Monitor configuration
-####################
-
-# Set enable_stat_monitor true(or false) to enable(or disable) the StatMonitor that stores statistics info.
-# enable_stat_monitor=false
-
-# Set enable_monitor_series_write true (or false) to enable (or disable) the writing monitor time series
-# enable_monitor_series_write=false
-
-####################
-### WAL Direct Buffer Pool Configuration
-####################
-# the interval to trim the wal pool
-# wal_pool_trim_interval_ms=10000
-
-# the max number of wal bytebuffer can be allocated for each time partition, if there is no unseq data you can set it to 4.
-# it should be an even number
-# max_wal_bytebuffer_num_for_each_partition=6
-
-####################
-### External sort Configuration
-####################
-# Is external sort enable
-# enable_external_sort=true
-
-# The maximum number of simultaneous chunk reading for a single time series.
-# If the num of simultaneous chunk reading is greater than external_sort_threshold, external sorting is used.
-# When external_sort_threshold increases, the number of chunks sorted at the same time in memory may increase and this will occupy more memory.
-# When external_sort_threshold decreases, triggering external sorting will increase the time-consuming.
-# external_sort_threshold=1000
-
-
-####################
-### Sync Server Configuration
-####################
-
-# Whether to open the sync_server_port for receiving data from sync client, the default is closed
-# is_sync_enable=false
-
-# Sync server port to listen
-# sync_server_port=5555
-
-# White IP list of Sync client.
-# Please use the form of network segment to present the range of IP, for example: 192.168.0.0/16
-# If there are more than one IP segment, please separate them by commas
-# The default is to allow all IP to sync
-# ip_white_list=0.0.0.0/0
-
-####################
-### performance statistic configuration
-####################
-
-# Is stat performance of sub-module enable
-# enable_performance_stat=false
-# The interval of display statistic result in ms.
-# performance_stat_display_interval=60000
-# The memory used for performance_stat in kb.
-# performance_stat_memory_in_kb=20
-# Is performance tracing enable
-# enable_performance_tracing=false
-
-# Uncomment following fields to configure the tracing root directory.
-# For Window platform, the index is as follows:
-# tracing_dir=data\\tracing
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-# tracing_dir=data/tracing
-
-####################
-### Configurations for watermark module
-####################
-# watermark_module_opened=false
-# watermark_secret_key=IoTDB*2019@Beijing
-# watermark_bit_string=100101110100
-# watermark_method=GroupBasedLSBMethod(embed_row_cycle=2,embed_lsb_num=5)
-
-
-####################
-### Configurations for creating schema automatically
-####################
-
-# Whether creating schema automatically is enabled
-# enable_auto_create_schema=true
-
-# Storage group level when creating schema automatically is enabled
-# e.g. root.sg0.d1.s2
-# we will set root.sg0 as the storage group if storage group level is 1
-# default_storage_group_level=1
-
-# ALL data types: BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT
-
-# register time series as which type when receiving boolean string "true" or "false"
-# boolean_string_infer_type=BOOLEAN
-
-# register time series as which type when receiving an integer string "67"
-# integer_string_infer_type=FLOAT
-
-# register time series as which type when receiving an integer string and using float may lose precision
-# num > 2 ^ 24
-# long_string_infer_type=DOUBLE
-
-# register time series as which type when receiving a floating number string "6.7"
-# floating_string_infer_type=FLOAT
-
-# register time series as which type when receiving the Literal NaN. Values can be DOUBLE, FLOAT or TEXT
-# nan_string_infer_type=DOUBLE
-
-
-# BOOLEAN encoding when creating schema automatically is enabled
-# default_boolean_encoding=RLE
-
-# INT32 encoding when creating schema automatically is enabled
-# default_int32_encoding=RLE
-
-# INT64 encoding when creating schema automatically is enabled
-# default_int64_encoding=RLE
-
-# FLOAT encoding when creating schema automatically is enabled
-# default_float_encoding=GORILLA
-
-# DOUBLE encoding when creating schema automatically is enabled
-# default_double_encoding=GORILLA
-
-# TEXT encoding when creating schema automatically is enabled
-# default_text_encoding=PLAIN
-
-####################
-### Configurations for tsfile-format
-####################
-
-# group_size_in_byte=134217728
-
-# The memory size for each series writer to pack page, default value is 64KB
-page_size_in_byte=1073741824
-
-# The maximum number of data points in a page, default 1024*1024
-# max_number_of_points_in_page=1048576
-
-# Data type configuration
-# Data type for input timestamp, supports INT32 or INT64
-# time_series_data_type=INT64
-
-# Max size limitation of input string
-# max_string_length=128
-
-# Floating-point precision
-# float_precision=2
-
-# Encoder configuration
-# Encoder of time series, supports TS_2DIFF, PLAIN and RLE(run-length encoding), REGULAR and default value is TS_2DIFF
-# time_encoder=TS_2DIFF
-
-# Encoder of value series. default value is PLAIN.
-# For int, long data type, also supports TS_2DIFF and RLE(run-length encoding) and GORILLA.
-# For float, double data type, also supports TS_2DIFF, RLE(run-length encoding) and GORILLA.
-# For text data type, only supports PLAIN.
-# value_encoder=PLAIN
-
-# Compression configuration
-# Data compression method, supports UNCOMPRESSED, SNAPPY or LZ4. Default value is SNAPPY
-# compressor=SNAPPY
-
-# Maximum degree of a metadataIndex node, default value is 256
-# max_degree_of_index_node=256
-
-# time interval in minute for calculating query frequency
-# frequency_interval_in_minute=1
-
-# time cost(ms) threshold for slow query
-# slow_query_threshold=5000
-
-####################
-### MQTT Broker Configuration
-####################
-
-# whether to enable the mqtt service.
-# enable_mqtt_service=false
-
-# the mqtt service binding host.
-# mqtt_host=0.0.0.0
-
-# the mqtt service binding port.
-# mqtt_port=1883
-
-# the handler pool size for handing the mqtt messages.
-# mqtt_handler_pool_size=1
-
-# the mqtt message payload formatter.
-# mqtt_payload_formatter=json
-
-# max length of mqtt message in byte
-# mqtt_max_message_size=1048576
-
-####################
-### Authorization Configuration
-####################
-
-#which class to serve for authorization. By default, it is LocalFileAuthorizer.
-#Another choice is org.apache.iotdb.db.auth.authorizer.OpenIdAuthorizer
-# authorizer_provider_class=org.apache.iotdb.db.auth.authorizer.LocalFileAuthorizer
-
-
-#If OpenIdAuthorizer is enabled, then openID_url must be set.
-
-#openID_url=
-
-####################
-### UDF Query Configuration
-####################
-
-# Used to estimate the memory usage of text fields in a UDF query.
-# It is recommended to set this value to be slightly larger than the average length of all text
-# records.
-# udf_initial_byte_array_length_for_memory_control=48
-
-# How much memory may be used in ONE UDF query (in MB).
-# The upper limit is 20% of allocated memory for read.
-# udf_memory_budget_in_mb=30.0
-
-# UDF memory allocation ratio.
-# The parameter form is a:b:c, where a, b, and c are integers.
-# udf_reader_transformer_collector_memory_proportion=1:1:1
-
-# Uncomment following fields to configure the udf root directory.
-# For Window platform, the index is as follows:
-# udf_root_dir=ext\\udf
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-# udf_root_dir=ext/udf
-
-
-# Uncomment following fields to configure the index root directory.
-# For Window platform, the index is as follows:
-# index_root_dir=data\\index
-# For Linux platform
-# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
-# index_root_dir=data/index
-
-# Is index enable
-# enable_index=false
-
-# How many threads can concurrently build index. When <= 0, use CPU core number.
-# concurrent_index_build_thread=0
-
-# the default size of sliding window used for the subsequence matching in index framework
-# default_index_window_range=10
-
-# buffer parameter for index processor.
-# index_buffer_size=134217728
-
-# 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
-
-# concurrent_writing_time_partition=500
-
-# admin username, default is root
-# Datatype: string
-# admin_name=root
-
-# admin password, default is root
-# Datatype: string
-# admin_password=root
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/query_experiment.sh b/example/session/src/main/java/org/apache/iotdb/tools/query_experiment.sh
deleted file mode 100644
index 9c9df3a..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/query_experiment.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-echo 3 | sudo tee /proc/sys/vm/drop_caches
-cd /data3/ruilei/rl/iotdb-server-0.12.4/sbin
-a=5
-for((i=0;i<a;i++)) do
- ./start-server.sh &
- sleep 3s
- java -jar /data3/ruilei/rl/BallSpeed_testspace/QueryBallSpeed-0.12.4.jar $1 $2 $3
- ./stop-server.sh
- echo 3 | sudo tee /proc/sys/vm/drop_caches
- sleep 3s
-done
diff --git a/example/session/src/main/java/org/apache/iotdb/tools/tool.sh b/example/session/src/main/java/org/apache/iotdb/tools/tool.sh
deleted file mode 100644
index 86b2274..0000000
--- a/example/session/src/main/java/org/apache/iotdb/tools/tool.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-############################
-#script function
-############################
-setProperty(){
- awk -v pat="^$1=" -v value="$1=$2" '{ if ($0 ~ pat) print value; else print $0; }' $3 > $3.tmp
- mv $3.tmp $3
- }
-############################
-### usage: setProperty $key $value $filename
-setProperty $1 $2 $3
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractBallSpeedData.java b/example/session/src/main/java/org/apache/iotdb/writeData/ExtractBallSpeedData.java
deleted file mode 100644
index 72ccb94..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractBallSpeedData.java
+++ /dev/null
@@ -1,59 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-// java ExtractBallSpeedData /data3/raw_data/data/full-game BallSpeed.csv 1 5 8 2000000 3200000
-public class ExtractBallSpeedData {
-
- // sid, ts, x, y, z, |v|, |a|, vx, vy, vz, ax, ay, az
- public static void main(String[] args) throws IOException {
- String inPath = args[0];
- String outPath = args[1];
- int timeIdx = Integer.parseInt(args[2]);
- int valueIdx = Integer.parseInt(args[3]);
- int sid = Integer.parseInt(args[4]); // -1 means all sid
- int startNum = Integer.parseInt(args[5]);
- int endNum = Integer.parseInt(args[6]);
-
- File f = new File(inPath);
- FileWriter fileWriter = new FileWriter(outPath);
- String line;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- PrintWriter printWriter = new PrintWriter(fileWriter);
- int cnt = 0;
- long lastTimestamp = -1;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- if (sid != -1) {
- int lineSid = Integer.parseInt(split[0]);
- if (lineSid != sid) {
- continue;
- }
- }
- cnt++;
- if (cnt < startNum) {
- continue;
- }
- if (cnt >= endNum) {
- break;
- }
- long timestamp = Long.parseLong(split[timeIdx]);
- long value = Long.parseLong(split[valueIdx]);
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- if (timestamp < lastTimestamp) {
- System.out.println("out-of-order! " + timestamp);
- }
- lastTimestamp = timestamp;
- }
- reader.close();
- printWriter.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractKOBData.java b/example/session/src/main/java/org/apache/iotdb/writeData/ExtractKOBData.java
deleted file mode 100644
index 61d0677..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractKOBData.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-// java ExtractTianyuan
-// /data3/raw_data/data/KOB/root.kobelco.trans.03.1090001603.2401604.KOB_0002_00_67.csv
-// KOB.csv 0 1
-public class ExtractKOBData {
-
- public static void main(String[] args) throws IOException {
- String inPath = args[0];
- String outPath = args[1];
- int timeIdx = Integer.parseInt(args[2]); // 0
- int valueIdx = Integer.parseInt(args[3]); // 1
-
- File f = new File(inPath);
- FileWriter fileWriter = new FileWriter(outPath);
- String line;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- PrintWriter printWriter = new PrintWriter(fileWriter);
- int cnt = 0;
- long lastTimestamp = -1;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]);
- long value = Long.parseLong(split[valueIdx]);
- if (timestamp <= lastTimestamp) {
- System.out.println("out-of-order! " + timestamp + "last: " + lastTimestamp);
- continue;
- }
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- cnt++;
- lastTimestamp = timestamp;
- }
- reader.close();
- printWriter.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractMF03Data.java b/example/session/src/main/java/org/apache/iotdb/writeData/ExtractMF03Data.java
deleted file mode 100644
index 57e1f3c..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractMF03Data.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.time.Instant;
-import java.time.ZonedDateTime;
-import java.time.format.DateTimeFormatter;
-import java.time.format.DateTimeParseException;
-
-public class ExtractMF03Data {
-
- // java ExtractMF03Data /data3/raw_data/data/debs2012/allData.txt MF03.csv 0 4
- // 1329955200000000000 1329966000000000000
- public static void main(String[] args) throws IOException {
- String inPath = args[0];
- String outPath = args[1];
- int timeIdx = Integer.parseInt(args[2]); // 0
- int valueIdx = Integer.parseInt(args[3]); // mf03: 4
- // [1329955200000000000 Thursday, February 23, 2012 0:00:00~1329966000000000000 Thursday,
- // February 23, 2012 3:00:00)
- long startTime = Long.parseLong(args[4]);
- long endTime = Long.parseLong(args[5]);
-
- File f = new File(inPath);
- FileWriter fileWriter = new FileWriter(outPath);
- String line;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- PrintWriter printWriter = new PrintWriter(fileWriter);
- int cnt = 0;
- long lastTimestamp = -1;
-
- while ((line = reader.readLine()) != null) {
- String[] split = line.split("\\s+");
- String timestampStr = split[timeIdx];
- long timestamp = getInstantWithPrecision(timestampStr, "ns");
- if (timestamp >= endTime) {
- break;
- }
- if (timestamp < startTime) {
- continue;
- }
- long value = Long.parseLong(split[valueIdx]);
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- cnt++;
- if (timestamp < lastTimestamp) {
- System.out.println("out-of-order! " + timestamp);
- }
- lastTimestamp = timestamp;
- }
- reader.close();
- printWriter.close();
- }
-
- // private static long convertDatetimeStrToLong(String str, ZoneOffset offset, int depth)
- // throws LogicalOperatorException {
- //
- // String timestampPrecision =
- // IoTDBDescriptor.getInstance().getConfig().getTimestampPrecision();
- //
- // if (depth >= 2) {
- // throw new DateTimeException(
- // String.format(
- // "Failed to convert %s to millisecond, zone offset is %s, "
- // + "please input like 2011-12-03T10:15:30 or 2011-12-03T10:15:30+01:00",
- // str, offset));
- // }
- // if (str.contains("Z")) {
- // return convertDatetimeStrToLong(str.substring(0, str.indexOf('Z')) + "+00:00", offset,
- // depth);
- // } else if (str.length() == 10) {
- // return convertDatetimeStrToLong(str + "T00:00:00", offset, depth);
- // } else if (str.length() - str.lastIndexOf('+') != 6
- // && str.length() - str.lastIndexOf('-') != 6) {
- // return convertDatetimeStrToLong(str + offset, offset, depth + 1);
- // } else if (str.contains("[") || str.contains("]")) {
- // throw new DateTimeException(
- // String.format(
- // "%s with [time-region] at end is not supported now, "
- // + "please input like 2011-12-03T10:15:30 or 2011-12-03T10:15:30+01:00",
- // str));
- // }
- // return getInstantWithPrecision(str, timestampPrecision);
- // }
-
- private static long getInstantWithPrecision(String str, String timestampPrecision)
- throws IOException {
- try {
- DateTimeFormatter formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
- ZonedDateTime zonedDateTime = ZonedDateTime.parse(str, formatter);
- Instant instant = zonedDateTime.toInstant();
- if (timestampPrecision.equals("us")) {
- if (instant.getEpochSecond() < 0 && instant.getNano() > 0) {
- // adjustment can reduce the loss of the division
- long millis = Math.multiplyExact(instant.getEpochSecond() + 1, 1000_000);
- long adjustment = instant.getNano() / 1000 - 1L;
- return Math.addExact(millis, adjustment);
- } else {
- long millis = Math.multiplyExact(instant.getEpochSecond(), 1000_000);
- return Math.addExact(millis, instant.getNano() / 1000);
- }
- } else if (timestampPrecision.equals("ns")) {
- long millis = Math.multiplyExact(instant.getEpochSecond(), 1000_000_000L);
- return Math.addExact(millis, instant.getNano());
- }
- return instant.toEpochMilli();
- } catch (DateTimeParseException e) {
- throw new IOException(e.getMessage());
- }
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractRcvTimeData.java b/example/session/src/main/java/org/apache/iotdb/writeData/ExtractRcvTimeData.java
deleted file mode 100644
index 03dd4b2..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/ExtractRcvTimeData.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.time.Instant;
-import java.time.ZonedDateTime;
-import java.time.format.DateTimeFormatter;
-import java.time.format.DateTimeParseException;
-
-public class ExtractRcvTimeData {
-
- // java D:\RcvTime\dump0.csv RcvTime.csv 0 1 0 1644144767000
- public static void main(String[] args) throws IOException {
- String inPath = args[0];
- String outPath = args[1];
- int timeIdx = Integer.parseInt(args[2]); // 0
- int valueIdx = Integer.parseInt(args[3]); // mf03: 4
- long startTime = Long.parseLong(args[4]);
- long endTime = Long.parseLong(args[5]);
-
- File f = new File(inPath);
- FileWriter fileWriter = new FileWriter(outPath);
- String line;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- PrintWriter printWriter = new PrintWriter(fileWriter);
- int cnt = 0;
- long lastTimestamp = -1;
-
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- String timestampStr = split[timeIdx];
- long timestamp = getInstantWithPrecision(timestampStr, "ms");
- if (timestamp >= endTime) {
- break;
- }
- if (timestamp < startTime) {
- continue;
- }
- if (timestamp <= lastTimestamp) {
- System.out.println("out-of-order! " + timestamp + "last: " + lastTimestamp);
- continue;
- }
- long value = Long.parseLong(split[valueIdx]);
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- cnt++;
- lastTimestamp = timestamp;
- }
- reader.close();
- printWriter.close();
- }
-
- private static long getInstantWithPrecision(String str, String timestampPrecision)
- throws IOException {
- try {
- DateTimeFormatter formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
- ZonedDateTime zonedDateTime = ZonedDateTime.parse(str, formatter);
- Instant instant = zonedDateTime.toInstant();
- if (timestampPrecision.equals("us")) {
- if (instant.getEpochSecond() < 0 && instant.getNano() > 0) {
- // adjustment can reduce the loss of the division
- long millis = Math.multiplyExact(instant.getEpochSecond() + 1, 1000_000);
- long adjustment = instant.getNano() / 1000 - 1L;
- return Math.addExact(millis, adjustment);
- } else {
- long millis = Math.multiplyExact(instant.getEpochSecond(), 1000_000);
- return Math.addExact(millis, instant.getNano() / 1000);
- }
- } else if (timestampPrecision.equals("ns")) {
- long millis = Math.multiplyExact(instant.getEpochSecond(), 1000_000_000L);
- return Math.addExact(millis, instant.getNano());
- }
- return instant.toEpochMilli();
- } catch (DateTimeParseException e) {
- throw new IOException(e.getMessage());
- }
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/OverlapGenerator.java b/example/session/src/main/java/org/apache/iotdb/writeData/OverlapGenerator.java
deleted file mode 100644
index a32cc61..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/OverlapGenerator.java
+++ /dev/null
@@ -1,104 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.Random;
-
-/**
- * 每次快要写到10000个点(chunk size)还剩下OD%个点的时候,OP%的概率决定要不要乱序. 如果要乱序,
- * 方法是剩下的这OD%个点,和接下来再OD%个点,合在一起2*OD%个点随机打乱然后再写。 0<=OP<=100 0<OD<=50.
- */
-public class OverlapGenerator {
-
- public static void main(String[] args) throws IOException {
- // default
- int avgSeriesPointNumberThreshold = 1000;
-
- String inPath = args[0];
- String outPath = args[1];
- int timeIdx = Integer.parseInt(args[2]);
- int valueIdx = Integer.parseInt(args[3]);
- int overlapPercentage = Integer.parseInt(args[4]); // 0-100
- int overlapDepth = Integer.parseInt(args[5]); // 0-50
-
- if (overlapPercentage < 0 || overlapPercentage > 100) {
- throw new IOException("WRONG overlapPercentage");
- }
- if (overlapDepth > 50 || overlapDepth < 0) { // 暂时只实现最多相邻两个chunk重叠,重叠深度从0到50%
- throw new IOException("WRONG pointNum");
- }
- int pointNum = (int) Math.floor(avgSeriesPointNumberThreshold * (overlapDepth / 100.0));
-
- File f = new File(inPath);
- FileWriter fileWriter = new FileWriter(outPath);
- String line;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- PrintWriter printWriter = new PrintWriter(fileWriter);
- int cnt = 0;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]); // time
- long value = Long.parseLong(split[valueIdx]); // value
-
- // note the first timestamp is never disordered. is global minimal.
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- cnt++;
-
- if (overlapPercentage != 0) {
- while (cnt % avgSeriesPointNumberThreshold == avgSeriesPointNumberThreshold - pointNum) {
- if (new Random().nextDouble() <= overlapPercentage / 100.0) {
- // disturb the next 2*pointNum points
- long[] timestampArray = new long[2 * pointNum];
- long[] valueArray = new long[2 * pointNum];
- List<Integer> idx = new ArrayList<>();
- int n = 0;
- while (n < 2 * pointNum && (line = reader.readLine()) != null) {
- // don't change the sequence of the above two conditions
- split = line.split(",");
- timestampArray[n] = Long.parseLong(split[timeIdx]);
- valueArray[n] = Long.parseLong(split[valueIdx]);
- idx.add(n);
- n++;
- }
- Collections.shuffle(idx);
- for (Integer integer : idx) {
- int k = integer;
- printWriter.print(timestampArray[k]);
- printWriter.print(",");
- printWriter.print(valueArray[k]);
- printWriter.println();
- cnt++;
- }
- } else {
- int n = 0;
- while (n < 2 * pointNum && (line = reader.readLine()) != null) {
- // don't change the sequence of the above two conditions
- split = line.split(",");
- timestamp = Long.parseLong(split[timeIdx]); // time
- value = Long.parseLong(split[valueIdx]); // value
- printWriter.print(timestamp);
- printWriter.print(",");
- printWriter.print(value);
- printWriter.println();
- cnt++;
- n++;
- }
- }
- }
- }
- }
- System.out.println(cnt);
- reader.close();
- printWriter.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/WriteBallSpeed.java b/example/session/src/main/java/org/apache/iotdb/writeData/WriteBallSpeed.java
deleted file mode 100644
index 931e162..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/WriteBallSpeed.java
+++ /dev/null
@@ -1,120 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-public class WriteBallSpeed {
- /** Before writing data, make sure check the server parameter configurations. */
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, IOException {
- String measurements = "s6"; // [[update]]
- String device = "root.game"; // [[update]]
- long chunkAvgTimeLen = 523841746L; // ns [[update]]
-
- // 实验自变量1:乱序数据源
- String filePath = args[0];
- // 实验自变量2:delete percentage
- int deletePercentage = Integer.parseInt(args[1]); // 0 means no deletes. 0-100
- // 实验自变量3:每次删除的时间长度,用chunkAvgTimeLen的百分比表示
- int deleteLenPercentage = Integer.parseInt(args[2]); // 0-100
- // 参数4:时间戳idx,从0开始
- int timeIdx = Integer.parseInt(args[3]);
- // 参数5:值idx,从0开始
- int valueIdx = Integer.parseInt(args[4]);
-
- if (deletePercentage < 0 || deletePercentage > 100) {
- throw new IOException("WRONG deletePercentage!");
- }
- if (deleteLenPercentage < 0 || deleteLenPercentage > 100) {
- throw new IOException("WRONG deleteLenPercentage!");
- }
-
- int avgSeriesPointNumberThreshold = 1000; // fixed
- int deletePeriod =
- (int) Math.floor(100 * 1.0 / deletePercentage * avgSeriesPointNumberThreshold);
- long deleteLen = (long) Math.floor(chunkAvgTimeLen * deleteLenPercentage * 1.0 / 100);
-
- List<String> deletePaths = new ArrayList<>();
- deletePaths.add(device + "." + measurements);
-
- TSDataType tsDataType = TSDataType.INT64; // value types
-
- Session session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
-
- // this is to make all following inserts unseq chunks
- session.insertRecord(
- device,
- 1644181628000000000L,
- // NOTE UPDATE TIME DATATYPE! [[update]]. DONT USE System.nanoTime()!
- Collections.singletonList(measurements),
- Collections.singletonList(tsDataType), // NOTE UPDATE VALUE DATATYPE!
- 0L); // NOTE UPDATE VALUE DATATYPE!
- session.executeNonQueryStatement("flush");
-
- long minTime = -1;
- File f = new File(filePath);
- String line = null;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- long lastDeleteMinTime = Long.MAX_VALUE;
- long lastDeleteMaxTime = Long.MIN_VALUE;
- int cnt = 0;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]);
- if (minTime == -1) {
- minTime = timestamp; // assume first timestamp is never disordered. is global minimal.
- timestamp = 0;
- } else {
- timestamp = timestamp - minTime;
- }
- timestamp = (long) (timestamp / 1000); // turn to ns. original time unit is ps. IoTDB only ns.
- long value = Long.parseLong(split[valueIdx]);
- session.insertRecord(
- device,
- timestamp,
- Collections.singletonList(measurements),
- Collections.singletonList(tsDataType),
- value);
- cnt++;
-
- if (timestamp > lastDeleteMaxTime) {
- lastDeleteMaxTime = timestamp;
- }
- if (timestamp < lastDeleteMinTime) {
- lastDeleteMinTime = timestamp;
- }
-
- if (deletePercentage != 0) {
- if (cnt >= deletePeriod) {
- cnt = 0;
- // randomize deleteStartTime in [lastMinTime, max(lastMaxTime-deleteLen,lastMinTime+1)]
- long rightBound = Math.max(lastDeleteMaxTime - deleteLen, lastDeleteMinTime + 1);
- long deleteStartTime =
- (long)
- Math.ceil(
- lastDeleteMinTime + Math.random() * (rightBound - lastDeleteMinTime + 1));
- long deleteEndTime = deleteStartTime + deleteLen - 1;
- session.deleteData(deletePaths, deleteStartTime, deleteEndTime);
- System.out.println("[[[[delete]]]]]" + deleteStartTime + "," + deleteEndTime);
-
- lastDeleteMinTime = Long.MAX_VALUE;
- lastDeleteMaxTime = Long.MIN_VALUE;
- }
- }
- }
-
- session.executeNonQueryStatement("flush");
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/WriteKOB.java b/example/session/src/main/java/org/apache/iotdb/writeData/WriteKOB.java
deleted file mode 100644
index 634643f..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/WriteKOB.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-public class WriteKOB {
-
- /** Before writing data, make sure check the server parameter configurations. */
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, IOException {
- String measurement = "KOB_0002_00_67"; // [[update]]
- String device = "root.kobelco.trans.03.1090001603.2401604"; // [[update]]
- long chunkAvgTimeLen = 5582620L;
-
- // 实验自变量1:乱序数据源
- String filePath = args[0];
- // 实验自变量2:delete percentage
- int deletePercentage = Integer.parseInt(args[1]); // 0 means no deletes. 0-100
- // 实验自变量3:每次删除的时间长度,用chunkAvgTimeLen的百分比表示
- int deleteLenPercentage = Integer.parseInt(args[2]); // 0-100
- // 参数4:时间戳idx,从0开始
- int timeIdx = Integer.parseInt(args[3]);
- // 参数5:值idx,从0开始
- int valueIdx = Integer.parseInt(args[4]);
-
- if (deletePercentage < 0 || deletePercentage > 100) {
- throw new IOException("WRONG deletePercentage!");
- }
- if (deleteLenPercentage < 0 || deleteLenPercentage > 100) {
- throw new IOException("WRONG deleteLenPercentage!");
- }
-
- int avgSeriesPointNumberThreshold = 1000; // fixed
- int deletePeriod =
- (int) Math.floor(100 * 1.0 / deletePercentage * avgSeriesPointNumberThreshold);
- long deleteLen = (long) Math.floor(chunkAvgTimeLen * deleteLenPercentage * 1.0 / 100);
-
- List<String> deletePaths = new ArrayList<>();
- deletePaths.add(device + "." + measurement);
-
- TSDataType tsDataType = TSDataType.INT64; // value types
-
- Session session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
-
- // this is to make all following inserts unseq chunks
- session.insertRecord(
- device,
- 1644181628000L, // ms
- // NOTE UPDATE TIME DATATYPE! [[update]]. DONT USE System.nanoTime()!
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType), // NOTE UPDATE VALUE DATATYPE!
- 0L); // NOTE UPDATE VALUE DATATYPE!
- session.executeNonQueryStatement("flush");
-
- File f = new File(filePath);
- String line = null;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- long lastDeleteMinTime = Long.MAX_VALUE;
- long lastDeleteMaxTime = Long.MIN_VALUE;
- int cnt = 0;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]);
- long value = Long.parseLong(split[valueIdx]);
- session.insertRecord(
- device,
- timestamp,
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType),
- value);
- cnt++;
-
- if (timestamp > lastDeleteMaxTime) {
- lastDeleteMaxTime = timestamp;
- }
- if (timestamp < lastDeleteMinTime) {
- lastDeleteMinTime = timestamp;
- }
-
- if (deletePercentage != 0) {
- if (cnt >= deletePeriod) {
- cnt = 0;
- // randomize deleteStartTime in [lastMinTime, max(lastMaxTime-deleteLen,lastMinTime+1)]
- long rightBound = Math.max(lastDeleteMaxTime - deleteLen, lastDeleteMinTime + 1);
- long deleteStartTime =
- (long)
- Math.ceil(
- lastDeleteMinTime + Math.random() * (rightBound - lastDeleteMinTime + 1));
- long deleteEndTime = deleteStartTime + deleteLen - 1;
- session.deleteData(deletePaths, deleteStartTime, deleteEndTime);
- System.out.println("[[[[delete]]]]]" + deleteStartTime + "," + deleteEndTime);
-
- lastDeleteMinTime = Long.MAX_VALUE;
- lastDeleteMaxTime = Long.MIN_VALUE;
- }
- }
- }
-
- session.executeNonQueryStatement("flush");
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/WriteMF03.java b/example/session/src/main/java/org/apache/iotdb/writeData/WriteMF03.java
deleted file mode 100644
index 567c10b..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/WriteMF03.java
+++ /dev/null
@@ -1,112 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-public class WriteMF03 {
- /** Before writing data, make sure check the server parameter configurations. */
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, IOException {
- String measurement = "mf03"; // [[update]]
- String device = "root.debs2012"; // [[update]]
- long chunkAvgTimeLen = 10221371911L; // ns [[update]]
-
- // 实验自变量1:乱序数据源
- String filePath = args[0];
- // 实验自变量2:delete percentage
- int deletePercentage = Integer.parseInt(args[1]); // 0 means no deletes. 0-100
- // 实验自变量3:每次删除的时间长度,用chunkAvgTimeLen的百分比表示
- int deleteLenPercentage = Integer.parseInt(args[2]); // 0-100
- // 参数4:时间戳idx,从0开始
- int timeIdx = Integer.parseInt(args[3]);
- // 参数5:值idx,从0开始
- int valueIdx = Integer.parseInt(args[4]);
-
- if (deletePercentage < 0 || deletePercentage > 100) {
- throw new IOException("WRONG deletePercentage!");
- }
- if (deleteLenPercentage < 0 || deleteLenPercentage > 100) {
- throw new IOException("WRONG deleteLenPercentage!");
- }
-
- int avgSeriesPointNumberThreshold = 1000; // fixed
- int deletePeriod =
- (int) Math.floor(100 * 1.0 / deletePercentage * avgSeriesPointNumberThreshold);
- long deleteLen = (long) Math.floor(chunkAvgTimeLen * deleteLenPercentage * 1.0 / 100);
-
- List<String> deletePaths = new ArrayList<>();
- deletePaths.add(device + "." + measurement);
-
- TSDataType tsDataType = TSDataType.INT64; // value types
-
- Session session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
-
- // this is to make all following inserts unseq chunks
- session.insertRecord(
- device,
- 1644181628000000000L, // ns
- // NOTE UPDATE TIME DATATYPE! [[update]]. DONT USE System.nanoTime()!
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType), // NOTE UPDATE VALUE DATATYPE!
- 0L); // NOTE UPDATE VALUE DATATYPE!
- session.executeNonQueryStatement("flush");
-
- File f = new File(filePath);
- String line = null;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- long lastDeleteMinTime = Long.MAX_VALUE;
- long lastDeleteMaxTime = Long.MIN_VALUE;
- int cnt = 0;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]);
- long value = Long.parseLong(split[valueIdx]);
- session.insertRecord(
- device,
- timestamp,
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType),
- value);
- cnt++;
-
- if (timestamp > lastDeleteMaxTime) {
- lastDeleteMaxTime = timestamp;
- }
- if (timestamp < lastDeleteMinTime) {
- lastDeleteMinTime = timestamp;
- }
-
- if (deletePercentage != 0) {
- if (cnt >= deletePeriod) {
- cnt = 0;
- // randomize deleteStartTime in [lastMinTime, max(lastMaxTime-deleteLen,lastMinTime+1)]
- long rightBound = Math.max(lastDeleteMaxTime - deleteLen, lastDeleteMinTime + 1);
- long deleteStartTime =
- (long)
- Math.ceil(
- lastDeleteMinTime + Math.random() * (rightBound - lastDeleteMinTime + 1));
- long deleteEndTime = deleteStartTime + deleteLen - 1;
- session.deleteData(deletePaths, deleteStartTime, deleteEndTime);
- System.out.println("[[[[delete]]]]]" + deleteStartTime + "," + deleteEndTime);
-
- lastDeleteMinTime = Long.MAX_VALUE;
- lastDeleteMaxTime = Long.MIN_VALUE;
- }
- }
- }
-
- session.executeNonQueryStatement("flush");
- session.close();
- }
-}
diff --git a/example/session/src/main/java/org/apache/iotdb/writeData/WriteRcvTime.java b/example/session/src/main/java/org/apache/iotdb/writeData/WriteRcvTime.java
deleted file mode 100644
index f0e942d..0000000
--- a/example/session/src/main/java/org/apache/iotdb/writeData/WriteRcvTime.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.apache.iotdb.writeData;
-
-import org.apache.iotdb.rpc.IoTDBConnectionException;
-import org.apache.iotdb.rpc.StatementExecutionException;
-import org.apache.iotdb.session.Session;
-import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-public class WriteRcvTime {
-
- /** Before writing data, make sure check the server parameter configurations. */
- public static void main(String[] args)
- throws IoTDBConnectionException, StatementExecutionException, IOException {
- String measurement = "RcvTime"; // [[update]]
- String device = "root.sg1"; // [[update]]
- long chunkAvgTimeLen = 20361332L;
-
- // 实验自变量1:乱序数据源
- String filePath = args[0];
- // 实验自变量2:delete percentage
- int deletePercentage = Integer.parseInt(args[1]); // 0 means no deletes. 0-100
- // 实验自变量3:每次删除的时间长度,用chunkAvgTimeLen的百分比表示
- int deleteLenPercentage = Integer.parseInt(args[2]); // 0-100
- // 参数4:时间戳idx,从0开始
- int timeIdx = Integer.parseInt(args[3]);
- // 参数5:值idx,从0开始
- int valueIdx = Integer.parseInt(args[4]);
-
- if (deletePercentage < 0 || deletePercentage > 100) {
- throw new IOException("WRONG deletePercentage!");
- }
- if (deleteLenPercentage < 0 || deleteLenPercentage > 100) {
- throw new IOException("WRONG deleteLenPercentage!");
- }
-
- int avgSeriesPointNumberThreshold = 1000; // fixed
- int deletePeriod =
- (int) Math.floor(100 * 1.0 / deletePercentage * avgSeriesPointNumberThreshold);
- long deleteLen = (long) Math.floor(chunkAvgTimeLen * deleteLenPercentage * 1.0 / 100);
-
- List<String> deletePaths = new ArrayList<>();
- deletePaths.add(device + "." + measurement);
-
- TSDataType tsDataType = TSDataType.INT64; // value types
-
- Session session = new Session("127.0.0.1", 6667, "root", "root");
- session.open(false);
-
- // this is to make all following inserts unseq chunks
- session.insertRecord(
- device,
- 1644181628000L, // ms
- // NOTE UPDATE TIME DATATYPE! [[update]]. DONT USE System.nanoTime()!
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType), // NOTE UPDATE VALUE DATATYPE!
- 0L); // NOTE UPDATE VALUE DATATYPE!
- session.executeNonQueryStatement("flush");
-
- File f = new File(filePath);
- String line = null;
- BufferedReader reader = new BufferedReader(new FileReader(f));
- long lastDeleteMinTime = Long.MAX_VALUE;
- long lastDeleteMaxTime = Long.MIN_VALUE;
- int cnt = 0;
- while ((line = reader.readLine()) != null) {
- String[] split = line.split(",");
- long timestamp = Long.parseLong(split[timeIdx]);
- long value = Long.parseLong(split[valueIdx]);
- session.insertRecord(
- device,
- timestamp,
- Collections.singletonList(measurement),
- Collections.singletonList(tsDataType),
- value);
- cnt++;
-
- if (timestamp > lastDeleteMaxTime) {
- lastDeleteMaxTime = timestamp;
- }
- if (timestamp < lastDeleteMinTime) {
- lastDeleteMinTime = timestamp;
- }
-
- if (deletePercentage != 0) {
- if (cnt >= deletePeriod) {
- cnt = 0;
- // randomize deleteStartTime in [lastMinTime, max(lastMaxTime-deleteLen,lastMinTime+1)]
- long rightBound = Math.max(lastDeleteMaxTime - deleteLen, lastDeleteMinTime + 1);
- long deleteStartTime =
- (long)
- Math.ceil(
- lastDeleteMinTime + Math.random() * (rightBound - lastDeleteMinTime + 1));
- long deleteEndTime = deleteStartTime + deleteLen - 1;
- session.deleteData(deletePaths, deleteStartTime, deleteEndTime);
- System.out.println("[[[[delete]]]]]" + deleteStartTime + "," + deleteEndTime);
-
- lastDeleteMinTime = Long.MAX_VALUE;
- lastDeleteMaxTime = Long.MIN_VALUE;
- }
- }
- }
-
- session.executeNonQueryStatement("flush");
- session.close();
- }
-}