Search in sources :

Example 21 with VectorAggregator

use of org.apache.druid.query.aggregation.VectorAggregator in project druid by druid-io.

the class FloatAnyAggregatorFactoryTest method factorizeVectorShouldReturnFloatVectorAggregator.

@Test
public void factorizeVectorShouldReturnFloatVectorAggregator() {
    VectorAggregator aggregator = target.factorizeVector(selectorFactory);
    Assert.assertNotNull(aggregator);
    Assert.assertEquals(FloatAnyVectorAggregator.class, aggregator.getClass());
}
Also used : VectorAggregator(org.apache.druid.query.aggregation.VectorAggregator) InitializedNullHandlingTest(org.apache.druid.testing.InitializedNullHandlingTest) Test(org.junit.Test)

Aggregations

VectorAggregator (org.apache.druid.query.aggregation.VectorAggregator)21 Test (org.junit.Test)20 InitializedNullHandlingTest (org.apache.druid.testing.InitializedNullHandlingTest)14 ByteBuffer (java.nio.ByteBuffer)7 ISE (org.apache.druid.java.util.common.ISE)1 CountAggregatorFactory (org.apache.druid.query.aggregation.CountAggregatorFactory)1 FilteredAggregatorFactory (org.apache.druid.query.aggregation.FilteredAggregatorFactory)1 VectorCursor (org.apache.druid.segment.vector.VectorCursor)1