We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758cb44 commit 5febf80Copy full SHA for 5febf80
tsfile/src/main/java/org/apache/tsfile/encoding/encoder/DictionaryEncoder.java
@@ -61,14 +61,15 @@ public DictionaryEncoder() {
61
62
@Override
63
public void encode(Binary value, ByteArrayOutputStream out) {
64
- entryIndex.computeIfAbsent(
65
- value,
66
- v -> {
67
- indexEntry.add(v);
68
- mapSize += v.getLength();
69
- return entryIndex.size();
70
- });
71
- valuesEncoder.encode(entryIndex.get(value), out);
+ int i =
+ entryIndex.computeIfAbsent(
+ value,
+ v -> {
+ indexEntry.add(v);
+ mapSize += v.getLength();
+ return entryIndex.size();
+ });
72
+ valuesEncoder.encode(i, out);
73
}
74
75
0 commit comments