Skip to content

Commit

Permalink
off heap changes
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Jul 18, 2024
1 parent 6c80d66 commit 551e941
Show file tree
Hide file tree
Showing 7 changed files with 2,493 additions and 1,247 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public abstract class BaseStarTreeBuilder implements StarTreeBuilder {

protected final TreeNode rootNode = getNewNode();

private final StarTreeField starTreeField;
protected final StarTreeField starTreeField;
private final MapperService mapperService;
private final SegmentWriteState state;
static String NUM_SEGMENT_DOCS = "numSegmentDocs";
Expand Down Expand Up @@ -163,7 +163,7 @@ public List<MetricAggregatorInfo> generateMetricAggregatorInfos(MapperService ma
*
* @return Star tree documents
*/
public abstract List<StarTreeDocument> getStarTreeDocuments();
public abstract List<StarTreeDocument> getStarTreeDocuments() throws IOException;

/**
* Returns the value of the dimension for the given dimension id and document in the star-tree.
Expand Down Expand Up @@ -310,8 +310,8 @@ protected StarTreeDocument reduceSegmentStarTreeDocuments(
StarTreeNumericType starTreeNumericType = metricAggregatorInfos.get(i).getAggregatedValueType();
if (isMerge) {
aggregatedSegmentDocument.metrics[i] = metricValueAggregator.mergeAggregatedValues(
aggregatedSegmentDocument.metrics[i],
segmentDocument.metrics[i]
segmentDocument.metrics[i],
aggregatedSegmentDocument.metrics[i]
);
} else {
aggregatedSegmentDocument.metrics[i] = metricValueAggregator.mergeAggregatedValueAndSegmentValue(
Expand Down Expand Up @@ -714,5 +714,4 @@ private long handleDateDimension(final String fieldName, final long val) {
public void close() throws IOException {

}

}
Loading

0 comments on commit 551e941

Please sign in to comment.