Skip to content

Commit

Permalink
off heap
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <[email protected]>
  • Loading branch information
bharath-techie committed Jan 20, 2024
1 parent a94b226 commit 22de6a2
Show file tree
Hide file tree
Showing 3 changed files with 587 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public abstract class BaseSingleTreeBuilder {
indexOutput = state.directory.createOutput(docFileName, state.context);
CodecUtil.writeIndexHeader(indexOutput, "STARTreeCodec", 0, state.segmentInfo.getId(), state.segmentSuffix);
dimensionsSplitOrder = new ArrayList<>();
dimensionsSplitOrder.add("hour");
// dimensionsSplitOrder.add("hour");
dimensionsSplitOrder.add("day");
dimensionsSplitOrder.add("month");
dimensionsSplitOrder.add("year");
Expand Down Expand Up @@ -349,7 +349,17 @@ private StarTreeBuilderUtils.TreeNode getNewNode() {

private void appendToStarTree(Record record)
throws IOException {
//logger.info("Appending record : " + record.toString());
// TODO : uncomment this for sanity
// boolean star = true;
// for(long dim : record._dimensions) {
// if(dim != StarTreeNode.ALL) {
// star = false;
// break;
// }
// }
// if(star) {
// System.out.println("======Overall sum =====" + (long) record._metrics[0]);
// }
appendRecord(record);
_numDocs++;
}
Expand Down
Loading

0 comments on commit 22de6a2

Please sign in to comment.