Class Aggregate
java.lang.Object
org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection<Operand>
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
-
Field Summary
Fields inherited from class Expression
operatorFields inherited from class 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 Expression
parenthesize, parenthesizeModifier and TypeMethodDescriptionIndicate that this expression should be wrapped in parentheses when converted to a query stringparenthesize(boolean parenthesize) Indicate if this expression should be wrapped in parentheses when converted to a query stringMethods inherited from class StandardQueryElementCollection
printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethodModifier and TypeMethodDescriptionprotected voidprintBodyIfEmpty(boolean printBodyIfEmpty) protected voidprintNameIfEmpty(boolean printNameIfEmpty) protected voidprotected voidsetOperatorName(String operatorName) protected voidsetOperatorName(String operatorName, boolean pad) protected voidsetWrapperMethod(Function<String, String> wrapperMethod) Methods inherited from class QueryElementCollection
addElements, addElements, isEmptyModifier and TypeMethodDescriptionprotected <O> voidaddElements(Function<? super O, ? extends Operand> mapper, O... os) protected voidaddElements(Operand... queryElements) booleanisEmpty()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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
-
getQueryString
- Specified by:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classStandardQueryElementCollection<Operand>- Returns:
- the String representing the SPARQL syntax of this element
-