Skip to content

Commit

Permalink
simplify IncrementalIndex since group-by v1 has been removed (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
clintropolis authored and ythorat2 committed Dec 1, 2023
1 parent 75c82d2 commit 965aa8c
Show file tree
Hide file tree
Showing 20 changed files with 234 additions and 364 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ private IncrementalIndex makeIncIndex()
{
return new OnheapIncrementalIndex.Builder()
.setSimpleTestingIndexSchema(schemaInfo.getAggsArray())
.setConcurrentEventAdd(true)
.setMaxRowCount(rowsPerSegment)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ private IncrementalIndex makeIncIndex()
{
return appendableIndexSpec.builder()
.setSimpleTestingIndexSchema(aggs)
.setDeserializeComplexMetrics(false)
.setMaxRowCount(rowsPerSegment)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,6 @@ private IncrementalIndex makeIncIndex(boolean withRollup)
.withRollup(withRollup)
.build()
)
.setConcurrentEventAdd(true)
.setMaxRowCount(rowsPerSegment)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public void testGroupByWithDistinctCountAgg() throws Exception
.withMetrics(new CountAggregatorFactory("cnt"))
.build()
)
.setConcurrentEventAdd(true)
.setMaxRowCount(1000)
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static SerializeResult toBytes(
writeString(k, out);

try (Aggregator agg = aggFactory.factorize(
IncrementalIndex.makeColumnSelectorFactory(VirtualColumns.EMPTY, aggFactory, supplier, true)
IncrementalIndex.makeColumnSelectorFactory(VirtualColumns.EMPTY, aggFactory, supplier)
)) {
try {
agg.aggregate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ public abstract class AppendableIndexBuilder
{
@Nullable
protected IncrementalIndexSchema incrementalIndexSchema = null;
protected boolean deserializeComplexMetrics = true;
protected boolean concurrentEventAdd = false;
protected boolean sortFacts = true;
protected int maxRowCount = 0;
protected long maxBytesInMemory = 0;
// When set to true, for any row that already has metric (with the same name defined in metricSpec),
Expand Down Expand Up @@ -88,18 +85,6 @@ public AppendableIndexBuilder setSimpleTestingIndexSchema(
return this;
}

public AppendableIndexBuilder setDeserializeComplexMetrics(final boolean deserializeComplexMetrics)
{
this.deserializeComplexMetrics = deserializeComplexMetrics;
return this;
}

public AppendableIndexBuilder setConcurrentEventAdd(final boolean concurrentEventAdd)
{
this.concurrentEventAdd = concurrentEventAdd;
return this;
}

public AppendableIndexBuilder setMaxRowCount(final int maxRowCount)
{
this.maxRowCount = maxRowCount;
Expand Down
Loading

0 comments on commit 965aa8c

Please sign in to comment.