You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/11/08 06:23:37 UTC
[iotdb] branch new_vector updated: Use primitive array from array
pool when extends column
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch new_vector
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/new_vector by this push:
new 93df1fb Use primitive array from array pool when extends column
93df1fb is described below
commit 93df1fb388fdd4b13c979978ba10d61646f309d1
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Nov 8 11:31:17 2021 +0800
Use primitive array from array pool when extends column
---
.../apache/iotdb/db/utils/datastructure/AlignedTVList.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java b/server/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
index 3eec517..1c9f6ed 100644
--- a/server/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
+++ b/server/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
@@ -277,22 +277,22 @@ public class AlignedTVList extends TVList {
for (int i = 0; i < timestamps.size(); i++) {
switch (dataType) {
case TEXT:
- columnValue.add(new Binary[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.TEXT));
break;
case FLOAT:
- columnValue.add(new float[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.FLOAT));
break;
case INT32:
- columnValue.add(new int[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.INT32));
break;
case INT64:
- columnValue.add(new long[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.INT64));
break;
case DOUBLE:
- columnValue.add(new double[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.DOUBLE));
break;
case BOOLEAN:
- columnValue.add(new boolean[ARRAY_SIZE]);
+ columnValue.add(getPrimitiveArraysByType(TSDataType.BOOLEAN));
break;
default:
break;