You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by sh...@apache.org on 2026/08/12 08:44:37 UTC
(iotdb) 05/06: refactor: remove unused getTvListByColumnIndex dead code
This is an automated email from the ASF dual-hosted git repository.
shuwenwei pushed a commit to branch fix_tvlist_partial_clone_dev_1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit aa4c42c1870990f44585cbf14b6507794dc5f7a6
Author: shuwenwei <s1...@gmail.com>
AuthorDate: Wed Aug 12 15:35:28 2026 +0800
refactor: remove unused getTvListByColumnIndex dead code
---
.../db/utils/datastructure/AlignedTVList.java | 34 ----------------------
.../iotdb/db/utils/datastructure/TVList.java | 5 ----
2 files changed, 39 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
index 3ef6143255d..d6a3369a5ec 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java
@@ -182,40 +182,6 @@ public abstract class AlignedTVList extends TVList {
}
}
- @Override
- public TVList getTvListByColumnIndex(List<Integer> columnIndex, List<TSDataType> dataTypeList) {
- List<List<Object>> values = new ArrayList<>();
- List<List<BitMap>> bitMaps = null;
- for (int i = 0; i < columnIndex.size(); i++) {
- // columnIndex == -1 means querying a non-exist column, add null column here
- if (columnIndex.get(i) == -1) {
- values.add(null);
- } else {
- values.add(this.values.get(columnIndex.get(i)));
- if (this.bitMaps != null && this.bitMaps.get(columnIndex.get(i)) != null) {
- if (bitMaps == null) {
- bitMaps = new ArrayList<>(columnIndex.size());
- for (int j = 0; j < columnIndex.size(); j++) {
- bitMaps.add(null);
- }
- }
- bitMaps.set(i, this.bitMaps.get(columnIndex.get(i)));
- }
- }
- }
- AlignedTVList alignedTvList = AlignedTVList.newAlignedList(new ArrayList<>(dataTypeList));
- alignedTvList.timestamps = this.timestamps;
- alignedTvList.indices = this.indices;
- alignedTvList.values = values;
- alignedTvList.bitMaps = bitMaps;
- alignedTvList.rowCount = this.rowCount;
- alignedTvList.allValueColDeletedMap = getAllValueColDeletedMap();
- alignedTvList.materializedBitmapMemoryCost = calculateBitmapRamCost(bitMaps, null);
- alignedTvList.refreshArrayMemCostWithoutIndex();
- alignedTvList.refreshMaterializedValueArrayMemoryCost();
- return alignedTvList;
- }
-
@Override
public synchronized AlignedTVList cloneForFlushSort() {
AlignedTVList cloneList = AlignedTVList.newAlignedList(new ArrayList<>(dataTypes));
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
index 60e421c9af5..2536836069c 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java
@@ -540,11 +540,6 @@ public abstract class TVList implements WALEntryValue {
throw new UnsupportedOperationException(ERR_DATATYPE_NOT_CONSISTENT);
}
- public TVList getTvListByColumnIndex(
- List<Integer> columnIndexList, List<TSDataType> dataTypeList) {
- throw new UnsupportedOperationException(ERR_DATATYPE_NOT_CONSISTENT);
- }
-
public long getMaxTime() {
return maxTime;
}