use of org.apache.druid.query.aggregation.PostAggregator in project druid by druid-io.
the class ArrayOfDoublesSketchToVariancesPostAggregatorTest method testToString.
@Test
public void testToString() {
final PostAggregator postAgg = new ArrayOfDoublesSketchToVariancesPostAggregator("a", new ConstantPostAggregator("", 0));
Assert.assertEquals("ArrayOfDoublesSketchToVariancesPostAggregator{name='a', field=ConstantPostAggregator{name='', constantValue=0}}", postAgg.toString());
}
use of org.apache.druid.query.aggregation.PostAggregator in project druid by druid-io.
the class ArrayOfDoublesSketchToStringPostAggregatorTest method testToString.
@Test
public void testToString() {
final PostAggregator postAgg = new ArrayOfDoublesSketchToStringPostAggregator("a", new ConstantPostAggregator("", 0));
Assert.assertEquals("ArrayOfDoublesSketchToStringPostAggregator{name='a', field=ConstantPostAggregator{name='', constantValue=0}}", postAgg.toString());
}
use of org.apache.druid.query.aggregation.PostAggregator in project druid by druid-io.
the class MinPostAggregatorTest method testToString.
@Test
public void testToString() {
PostAggregator postAgg = new MinPostAggregator("min", "test_field");
Assert.assertEquals("MinPostAggregator{fieldName='test_field'}", postAgg.toString());
}
use of org.apache.druid.query.aggregation.PostAggregator in project druid by druid-io.
the class MaxPostAggregatorTest method testToString.
@Test
public void testToString() {
PostAggregator postAgg = new MaxPostAggregator("max", "test_field");
Assert.assertEquals("MaxPostAggregator{fieldName='test_field'}", postAgg.toString());
}
use of org.apache.druid.query.aggregation.PostAggregator in project druid by druid-io.
the class CustomBucketsPostAggregatorTest method testToString.
@Test
public void testToString() {
PostAggregator postAgg = new CustomBucketsPostAggregator("buckets_post_aggregator", "test_field", new float[] { 2f, 4f });
Assert.assertEquals("CustomBucketsPostAggregator{name='buckets_post_aggregator', fieldName='test_field', breaks=[2.0, 4.0]}", postAgg.toString());
}
Aggregations