Class CountAggregate<T>

All Implemented Interfaces:
Serializable, Bound<Long>, Expression
Direct Known Subclasses:
CountNonNull, CountStar

public class CountAggregate<T> extends BoundAggregate<T,Long>
See Also:
  • Constructor Details

  • Method Details

    • eval

      public Long eval(StructLike struct)
      Description copied from interface: Bound
      Produce a value from the struct for this expression.
      Specified by:
      eval in interface Bound<T>
      Overrides:
      eval in class BoundAggregate<T,Long>
      Parameters:
      struct - a struct of incoming data
      Returns:
      the value of this expression when evaluated on the incoming struct
    • eval

      public Long eval(DataFile file)
    • countFor

      protected Long countFor(StructLike row)
    • countFor

      protected Long countFor(DataFile file)
    • newAggregator

      public org.apache.iceberg.expressions.BoundAggregate.Aggregator<Long> newAggregator()