|
@@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.equalTo;
|
|
|
public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase {
|
|
|
@Override
|
|
|
protected SourceOperator simpleInput(BlockFactory blockFactory, int size) {
|
|
|
- return new SequenceDoubleBlockSourceOperator(LongStream.range(0, size).mapToDouble(l -> ESTestCase.randomDouble()));
|
|
|
+ return new SequenceDoubleBlockSourceOperator(blockFactory, LongStream.range(0, size).mapToDouble(l -> ESTestCase.randomDouble()));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -55,7 +55,7 @@ public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase
|
|
|
try (
|
|
|
Driver d = new Driver(
|
|
|
driverContext,
|
|
|
- new SequenceDoubleBlockSourceOperator(DoubleStream.of(Double.MAX_VALUE - 1, 2)),
|
|
|
+ new SequenceDoubleBlockSourceOperator(driverContext.blockFactory(), DoubleStream.of(Double.MAX_VALUE - 1, 2)),
|
|
|
List.of(simple(nonBreakingBigArrays()).get(driverContext)),
|
|
|
new PageConsumerOperator(page -> results.add(page)),
|
|
|
() -> {}
|
|
@@ -74,6 +74,7 @@ public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase
|
|
|
Driver d = new Driver(
|
|
|
driverContext,
|
|
|
new SequenceDoubleBlockSourceOperator(
|
|
|
+ driverContext.blockFactory(),
|
|
|
DoubleStream.of(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7)
|
|
|
),
|
|
|
List.of(simple(nonBreakingBigArrays()).get(driverContext)),
|
|
@@ -101,7 +102,7 @@ public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase
|
|
|
try (
|
|
|
Driver d = new Driver(
|
|
|
driverContext,
|
|
|
- new SequenceDoubleBlockSourceOperator(DoubleStream.of(values)),
|
|
|
+ new SequenceDoubleBlockSourceOperator(driverContext.blockFactory(), DoubleStream.of(values)),
|
|
|
List.of(simple(nonBreakingBigArrays()).get(driverContext)),
|
|
|
new PageConsumerOperator(page -> results.add(page)),
|
|
|
() -> {}
|
|
@@ -123,7 +124,7 @@ public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase
|
|
|
try (
|
|
|
Driver d = new Driver(
|
|
|
driverContext,
|
|
|
- new SequenceDoubleBlockSourceOperator(DoubleStream.of(largeValues)),
|
|
|
+ new SequenceDoubleBlockSourceOperator(driverContext.blockFactory(), DoubleStream.of(largeValues)),
|
|
|
List.of(simple(nonBreakingBigArrays()).get(driverContext)),
|
|
|
new PageConsumerOperator(page -> results.add(page)),
|
|
|
() -> {}
|
|
@@ -142,7 +143,7 @@ public class SumDoubleAggregatorFunctionTests extends AggregatorFunctionTestCase
|
|
|
try (
|
|
|
Driver d = new Driver(
|
|
|
driverContext,
|
|
|
- new SequenceDoubleBlockSourceOperator(DoubleStream.of(largeValues)),
|
|
|
+ new SequenceDoubleBlockSourceOperator(driverContext.blockFactory(), DoubleStream.of(largeValues)),
|
|
|
List.of(simple(nonBreakingBigArrays()).get(driverContext)),
|
|
|
new PageConsumerOperator(page -> results.add(page)),
|
|
|
() -> {}
|