Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
iverase committed Nov 29, 2024
1 parent a50d069 commit b7ff627
Show file tree
Hide file tree
Showing 168 changed files with 4 additions and 24,103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public void testStreamResponse() throws Exception {
InternalMappedSignificantTerms<?, ?> read = (InternalMappedSignificantTerms<?, ?>) in.readNamedWriteable(InternalAggregation.class);

assertEquals(sigTerms.getSignificanceHeuristic(), read.getSignificanceHeuristic());
assertThat(read.getSubsetSize(), equalTo(10L));
assertThat(read.getSupersetSize(), equalTo(20L));
SignificantTerms.Bucket originalBucket = sigTerms.getBuckets().get(0);
SignificantTerms.Bucket streamedBucket = read.getBuckets().get(0);
assertThat(originalBucket.getKeyAsString(), equalTo(streamedBucket.getKeyAsString()));
Expand Down Expand Up @@ -130,6 +132,8 @@ public void testReduce() {
List<InternalAggregation> aggs = createInternalAggregations();
AggregationReduceContext context = InternalAggregationTestCase.emptyReduceContextBuilder().forFinalReduction();
SignificantTerms reducedAgg = (SignificantTerms) InternalAggregationTestCase.reduce(aggs, context);
assertThat(reducedAgg.getSubsetSize(), equalTo(16L));
assertThat(reducedAgg.getSupersetSize(), equalTo(30L));
assertThat(reducedAgg.getBuckets().size(), equalTo(2));
assertThat(reducedAgg.getBuckets().get(0).getSubsetDf(), equalTo(8L));
assertThat(reducedAgg.getBuckets().get(0).getSupersetDf(), equalTo(10L));
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit b7ff627

Please sign in to comment.