You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/09/15 13:35:21 UTC
[iotdb] branch VectorTest created (now 2e46631)
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a change to branch VectorTest
in repository https://gitbox.apache.org/repos/asf/iotdb.git.
at 2e46631 Change the way of calculating vector avg points
This branch includes the following new commits:
new 2e46631 Change the way of calculating vector avg points
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: Change the way of calculating vector avg points
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch VectorTest
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 2e46631c3a88c2f479a95a6de2acaf30e04fb4ad
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Wed Sep 15 21:34:30 2021 +0800
Change the way of calculating vector avg points
---
.../java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java b/server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
index 984ce32..9652c08 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
@@ -53,7 +53,7 @@ public abstract class AbstractMemTable implements IMemTable {
protected boolean disableMemControl = true;
private boolean shouldFlush = false;
- private int avgSeriesPointNumThreshold =
+ private final int avgSeriesPointNumThreshold =
IoTDBDescriptor.getInstance().getConfig().getAvgSeriesPointNumberThreshold();
/** memory size of data points, including TEXT values */
private long memSize = 0;
@@ -112,7 +112,8 @@ public abstract class AbstractMemTable implements IMemTable {
schema.getMeasurementId(),
k -> {
seriesNumber++;
- totalPointsNumThreshold += avgSeriesPointNumThreshold;
+ totalPointsNumThreshold +=
+ ((long) avgSeriesPointNumThreshold * schema.getMeasurementCount());
return genMemSeries(schema);
});
}