Class SuppressedAggregatorFactory.SuppressedAggregator

java.lang.Object
org.apache.druid.query.aggregation.SuppressedAggregatorFactory.SuppressedAggregator
All Implemented Interfaces:
Closeable, AutoCloseable, Aggregator
Enclosing class:
SuppressedAggregatorFactory

public static class SuppressedAggregatorFactory.SuppressedAggregator extends Object implements Aggregator
  • Constructor Details

    • SuppressedAggregator

      public SuppressedAggregator(Aggregator delegate)
  • Method Details

    • aggregate

      public void aggregate()
      Description copied from interface: Aggregator
      Performs aggregation.
      Specified by:
      aggregate in interface Aggregator
    • get

      @Nullable public Object get()
      Specified by:
      get in interface Aggregator
    • getFloat

      public float getFloat()
      Specified by:
      getFloat in interface Aggregator
    • getLong

      public long getLong()
      Specified by:
      getLong in interface Aggregator
    • getDouble

      public double getDouble()
      Description copied from interface: Aggregator
      The default implementation casts Aggregator.getFloat() to double. This default method is added to enable smooth backward compatibility, please re-implement it if your aggregators work with numeric double columns.
      Specified by:
      getDouble in interface Aggregator
    • isNull

      public boolean isNull()
      Description copied from interface: Aggregator
      returns true if aggregator's output type is primitive long/double/float and aggregated value is null, but when aggregated output type is Object, this method always returns false, and users are advised to check nullability for the object returned by Aggregator.get() method. The default implementation always return false to enable smooth backward compatibility, re-implement if your aggregator is nullable.
      Specified by:
      isNull in interface Aggregator
    • close

      public void close()
      Specified by:
      close in interface Aggregator
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDelegate

      public Aggregator getDelegate()