Class SingleValueAggregatorFactory

java.lang.Object
org.apache.druid.query.aggregation.AggregatorFactory
org.apache.druid.query.aggregation.SingleValueAggregatorFactory
All Implemented Interfaces:
Cacheable

public class SingleValueAggregatorFactory extends AggregatorFactory
This AggregatorFactory is meant to wrap the subquery used as an expression into a single value and is expected to throw an exception when the subquery results in more than one row

This consumes columnType as well along with name and fieldName to pass it on to underlying SingleValueBufferAggregator to work with different ColumnTypes

  • Field Details

    • DEFAULT_MAX_VALUE_SIZE

      public static final int DEFAULT_MAX_VALUE_SIZE
      See Also:
  • Constructor Details

    • SingleValueAggregatorFactory

      public SingleValueAggregatorFactory(String name, String fieldName, ColumnType columnType)
  • Method Details