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
public class Aggregate extends Expression<Aggregate>
A SPARQL aggregate expression.- See Also:
- SPARQL Aggregates
-
-
Field Summary
Fields Modifier and Type Field Description private booleancountAllprivate static java.lang.StringDISTINCTprivate booleanisDistinctprivate java.lang.Stringseparatorprivate static java.lang.ObjectSEPARATOR-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
operator
-
Fields inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
elements
-
-
Constructor Summary
Constructors Constructor Description Aggregate(SparqlAggregate aggregate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregatecountAll()If this is acountaggregate expressions, specify that it should count allAggregatecountAll(boolean countAll)If this is acountaggregate expressions, specify if it should count allAggregatedistinct()Specify this aggregate expression to be distinctAggregatedistinct(boolean isDistinct)Specify if this aggregate expression should be distinct or notjava.lang.StringgetQueryString()Aggregateseparator(java.lang.String separator)If this is agroup_concataggregate expression, specify the separator to use-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.constraint.Expression
addOperand, getOperand, parenthesize, parenthesize
-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.StandardQueryElementCollection
printBodyIfEmpty, printNameIfEmpty, resetWrapperMethod, setOperatorName, setOperatorName, setWrapperMethod
-
Methods inherited from class org.eclipse.rdf4j.sparqlbuilder.core.QueryElementCollection
addElements, addElements, isEmpty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.sparqlbuilder.core.Assignable
as
-
-
-
-
Field Detail
-
DISTINCT
private static final java.lang.String DISTINCT
- See Also:
- Constant Field Values
-
SEPARATOR
private static final java.lang.Object SEPARATOR
-
separator
private java.lang.String separator
-
isDistinct
private boolean isDistinct
-
countAll
private boolean countAll
-
-
Constructor Detail
-
Aggregate
Aggregate(SparqlAggregate aggregate)
-
-
Method Detail
-
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 acountaggregate expressions, specify that it should count all- Returns:
- this aggregate instance
-
countAll
public Aggregate countAll(boolean 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
public Aggregate separator(java.lang.String separator)
If this is agroup_concataggregate expression, specify the separator to use- Parameters:
separator- the separator to use- Returns:
- this aggregate instance
- See Also:
- group_concat()
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryStringin interfaceQueryElement- Overrides:
getQueryStringin classStandardQueryElementCollection<Operand>- Returns:
- the String representing the SPARQL syntax of this element
-
-