Class StringFirstAggregator

java.lang.Object
org.apache.druid.query.aggregation.firstlast.first.StringFirstAggregator
All Implemented Interfaces:
Closeable, AutoCloseable, Aggregator

public class StringFirstAggregator extends Object implements Aggregator
  • Field Details

    • firstTime

      protected long firstTime
    • firstValue

      protected String firstValue
  • Constructor Details

  • Method Details

    • aggregate

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

      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
    • close

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