Skip to content

Commit 99162ef

Browse files
authored
The index type BanyanDB.IndexRule.IndexType#TREE is removed (#12743)
1 parent 55600c6 commit 99162ef

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

docs/en/changes/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Support async-profiler feature for performance analysis.
1616
* Add metrics value owner for metrics topN query result.
1717
* Add naming control for `EndpointDependencyBuilder`.
18+
* The index type `BanyanDB.IndexRule.IndexType#TREE` is removed. All indices are using `IndexType#INVERTED` now.
1819

1920
#### UI
2021

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/topn/TopN.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public abstract class TopN extends Record implements ComparableStorageData {
3838
@Getter
3939
@Setter
4040
@Column(name = LATENCY, dataType = Column.ValueDataType.SAMPLED_RECORD)
41-
@BanyanDB.IndexRule(indexType = BanyanDB.IndexRule.IndexType.TREE)
4241
private long latency;
4342
@Getter
4443
@Setter

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/annotation/BanyanDB.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,12 @@ enum IndexType {
106106
* It's suitable for most tag indexing due to a better memory usage ratio and query performance.
107107
*/
108108
INVERTED,
109-
/**
110-
* The `TREE` index could be better when there are high cardinalities, such as the `ID` tag and numeric duration tag.
111-
* In these cases, it saves much memory space.
112-
*/
113-
TREE;
114109
}
115110
}
116111

117112
/**
118-
* timestampColumn is to identify which column in {@link Record} is providing the timestamp(millisecond) for BanyanDB.
113+
* timestampColumn is to identify which column in {@link Record} is providing the timestamp(millisecond) for
114+
* BanyanDB.
119115
* BanyanDB stream requires a timestamp in milliseconds.
120116
*
121117
* @since 9.3.0

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/model/BanyanDBExtension.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ public class BanyanDBExtension {
5151
* indexType is the type of index built for a {@link ModelColumn} in BanyanDB.
5252
*
5353
* @since 9.3.0
54+
* @deprecated since 10.2. Only support {@link BanyanDB.IndexRule.IndexType#INVERTED} now. There was IndexType#TREE,
55+
* but removed.
5456
*/
55-
@Getter
5657
private final BanyanDB.IndexRule.IndexType indexType;
5758

5859
/**
59-
* A column belong to a measure's field.
60+
* A column belong to a measure's field.
6061
*/
6162
@Getter
6263
private final boolean isMeasureField;

0 commit comments

Comments
 (0)