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 2024/10/27 15:41:50 UTC
(iotdb) 10/31: add
This is an automated email from the ASF dual-hosted git repository.
leirui pushed a commit to branch research/LTS-visualization
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 6845196f3f215fcd9b053e8822299fa8979b56ad
Author: Lei Rui <10...@qq.com>
AuthorDate: Wed Oct 2 00:40:56 2024 +0800
add
---
.../org/apache/iotdb/db/query/simpiece/DFT.java | 35 ++++++++++++++++++++++
.../org/apache/iotdb/db/query/simpiece/DWT.java | 35 ++++++++++++++++++++++
2 files changed, 70 insertions(+)
diff --git a/server/src/main/java/org/apache/iotdb/db/query/simpiece/DFT.java b/server/src/main/java/org/apache/iotdb/db/query/simpiece/DFT.java
new file mode 100644
index 00000000000..e890d0f76d1
--- /dev/null
+++ b/server/src/main/java/org/apache/iotdb/db/query/simpiece/DFT.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.db.query.simpiece;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class DFT {
+ public static List<Point> reducePoints(List<Point> points, double epsilon) {
+ int length = points.size();
+
+ List<Point> result = new ArrayList<>();
+
+ // IOMonitor2.DCP_D_getAllSatisfiedPageData_traversedPointNum++;
+
+ return result;
+ }
+}
diff --git a/server/src/main/java/org/apache/iotdb/db/query/simpiece/DWT.java b/server/src/main/java/org/apache/iotdb/db/query/simpiece/DWT.java
new file mode 100644
index 00000000000..46a67f38c10
--- /dev/null
+++ b/server/src/main/java/org/apache/iotdb/db/query/simpiece/DWT.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.iotdb.db.query.simpiece;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class DWT {
+ public static List<Point> reducePoints(List<Point> points, double epsilon) {
+ int length = points.size();
+
+ List<Point> result = new ArrayList<>();
+
+ // IOMonitor2.DCP_D_getAllSatisfiedPageData_traversedPointNum++;
+
+ return result;
+ }
+}