Skip to content

Commit 4e0c337

Browse files
committed
add comment
1 parent f0da074 commit 4e0c337

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/patternedtext/PatternTextDocValuesTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ static class SimpleSortedSetDocValues extends SortedSetDocValues {
115115
private final List<Integer> docToOrds;
116116
private int currDoc = -1;
117117

118+
// Single value for each docId, null if no value for a docId
118119
SimpleSortedSetDocValues(String... docIdToValue) {
119120
ordToValues = Arrays.stream(docIdToValue).filter(Objects::nonNull).collect(Collectors.toSet()).stream().sorted().toList();
120121
docToOrds = Arrays.stream(docIdToValue).map(v -> v == null ? null : ordToValues.indexOf(v)).toList();

0 commit comments

Comments
 (0)