You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/BaseStarTreeBuilder.java
+6
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@
55
55
importjava.util.ArrayList;
56
56
importjava.util.Arrays;
57
57
importjava.util.Collections;
58
+
importjava.util.Comparator;
58
59
importjava.util.HashMap;
59
60
importjava.util.HashSet;
60
61
importjava.util.Iterator;
@@ -112,6 +113,8 @@ public abstract class BaseStarTreeBuilder implements StarTreeBuilder {
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/OffHeapStarTreeBuilder.java
+4-2
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ private Iterator<StarTreeDocument> sortAndReduceDocuments(int[] sortedDocIds, in
235
235
} catch (IOExceptione) {
236
236
thrownewUncheckedIOException(e);
237
237
}
238
-
});
238
+
}, dimensionComparators);
239
239
} catch (UncheckedIOExceptionex) {
240
240
// Unwrap UncheckedIOException and throw as IOException
241
241
if (ex.getCause() != null) {
@@ -308,6 +308,7 @@ public List<StarTreeDocument> getStarTreeDocuments() throws IOException {
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/builder/OnHeapStarTreeBuilder.java
+10-20
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,8 @@ public class OnHeapStarTreeBuilder extends BaseStarTreeBuilder {
42
42
/**
43
43
* Constructor for OnHeapStarTreeBuilder
44
44
*
45
-
* @param metaOut an index output to write star-tree metadata
46
-
* @param dataOut an index output to write star-tree data
45
+
* @param metaOut an index output to write star-tree metadata
46
+
* @param dataOut an index output to write star-tree data
47
47
* @param starTreeField star-tree field
48
48
* @param segmentWriteState segment write state
49
49
* @param mapperService helps with the numeric type of field
@@ -82,9 +82,8 @@ public Long getDimensionValue(int docId, int dimensionId) {
82
82
* Sorts and aggregates all the documents of the segment based on dimension and metrics configuration
83
83
*
84
84
* @param dimensionReaders List of docValues readers to read dimensions from the segment
85
-
* @param metricReaders List of docValues readers to read metrics from the segment
85
+
* @param metricReaders List of docValues readers to read metrics from the segment
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/index/compositeindex/datacube/startree/fileformats/StarTreeWriter.java
+4-1
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,11 @@ public class StarTreeWriter {
27
27
/** Initial version for the star tree writer */
28
28
publicstaticfinalintVERSION_START = 0;
29
29
30
+
/** Version for the star tree writer with updated metadata which handles unsigned long */
0 commit comments