Class Aggregate

java.lang.Object
com.kingsrook.qqq.backend.core.model.actions.tables.aggregate.Aggregate
All Implemented Interfaces:
Serializable

public class Aggregate extends Object implements Serializable
Define an "aggregate", e.g., to be selected in an Aggregate action. Such as SUM(cost).
See Also:
  • Constructor Details

  • Method Details

    • equals

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

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

      public String getFieldName()
      Getter for fieldName
    • setFieldName

      public void setFieldName(String fieldName)
      Setter for fieldName
    • withFieldName

      public Aggregate withFieldName(String fieldName)
      Fluent setter for fieldName
    • getOperator

      public AggregateOperator getOperator()
      Getter for operator
    • setOperator

      public void setOperator(AggregateOperator operator)
      Setter for operator
    • withOperator

      public Aggregate withOperator(AggregateOperator operator)
      Fluent setter for operator
    • getFieldType

      public QFieldType getFieldType()
      Getter for fieldType
    • setFieldType

      public void setFieldType(QFieldType fieldType)
      Setter for fieldType
    • withFieldType

      public Aggregate withFieldType(QFieldType fieldType)
      Fluent setter for fieldType
    • getPercentile

      public BigDecimal getPercentile()
      Getter for percentile
    • setPercentile

      public void setPercentile(BigDecimal percentile)
      Setter for percentile
    • withPercentile

      public Aggregate withPercentile(BigDecimal percentile)
      Fluent setter for percentile
    • getOtherFieldName

      public String getOtherFieldName()
      Getter for otherFieldName
    • setOtherFieldName

      public void setOtherFieldName(String otherFieldName)
      Setter for otherFieldName
    • withOtherFieldName

      public Aggregate withOtherFieldName(String otherFieldName)
      Fluent setter for otherFieldName
    • percentile

      public static Aggregate percentile(String fieldName, double percentile)
      Continuous percentile of a field, from zero through one.