Class Aggregate
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<T>
org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection<Operand>
org.eclipse.rdf4j.sparqlbuilder.constraint.Expression<Aggregate>
org.eclipse.rdf4j.sparqlbuilder.constraint.Aggregate
- All Implemented Interfaces:
Operand,Assignable,Groupable,Orderable,QueryElement
A SPARQL aggregate expression.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
operatorFields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements -
Method Summary
Modifier and TypeMethodDescriptioncountAll()If this is acountaggregate expressions, specify that it should count allcountAll(boolean countAll) If this is acountaggregate expressions, specify if it should count alldistinct()Specify this aggregate expression to be distinctdistinct(boolean isDistinct) Specify if this aggregate expression should be distinct or notIf this is agroup_concataggregate expression, specify the separator to useMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
parenthesize, parenthesizeMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection
printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethodMethods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmptyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.sparqlbuilder.core.Assignable
as
-
Method Details
-
distinct
Specify this aggregate expression to be distinct- Returns:
- this aggregate instance
-
distinct
Specify if this aggregate expression should be distinct or not- Parameters:
isDistinct- if this aggregate should be distinct- Returns:
- this aggregate instance
-
countAll
If this is acountaggregate expressions, specify that it should count all- Returns:
- this aggregate instance
-
countAll
If this is acountaggregate expressions, specify if it should count all- Parameters:
countAll- if this should count all arguments or not- Returns:
- this aggregate instance
-
separator
If this is agroup_concataggregate expression, specify the separator to use- Parameters:
separator- the separator to use- Returns:
- this aggregate instance
- See Also:
-
getQueryString
- Specified by:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classStandardQueryElementCollection<Operand>- Returns:
- the String representing the SPARQL syntax of this element
-