All Implemented Interfaces:
Operand, Assignable, Groupable, Orderable, QueryElement

public class Aggregate extends Expression<Aggregate>
A SPARQL aggregate expression.
See Also:
  • Method Details

    • distinct

      public Aggregate distinct()
      Specify this aggregate expression to be distinct
      Returns:
      this aggregate instance
    • distinct

      public Aggregate distinct(boolean isDistinct)
      Specify if this aggregate expression should be distinct or not
      Parameters:
      isDistinct - if this aggregate should be distinct
      Returns:
      this aggregate instance
    • countAll

      public Aggregate countAll()
      If this is a count aggregate expressions, specify that it should count all
      Returns:
      this aggregate instance
    • countAll

      public Aggregate countAll(boolean countAll)
      If this is a count aggregate expressions, specify if it should count all
      Parameters:
      countAll - if this should count all arguments or not
      Returns:
      this aggregate instance
    • separator

      public Aggregate separator(String separator)
      If this is a group_concat aggregate expression, specify the separator to use
      Parameters:
      separator - the separator to use
      Returns:
      this aggregate instance
      See Also:
    • getQueryString

      public String getQueryString()
      Specified by:
      getQueryString in interface QueryElement
      Overrides:
      getQueryString in class StandardQueryElementCollection<Operand>
      Returns:
      the String representing the SPARQL syntax of this element