Class StatisticCollector
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.function.aggregate.StatisticCollector
- All Implemented Interfaces:
AggregateCollector
- Direct Known Subclasses:
StandardDeviationCollector
,VarianceCollector
AggregateCollector
implementation that processes SPARQL statistical functions based on input Literal
values.- Author:
- Tomas Kovachev t.kovachev1996@gmail.com
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
protected final org.apache.commons.math3.stat.descriptive.SummaryStatistics
protected ValueExprEvaluationException
protected static final Literal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract Literal
boolean
hasError()
void
setTypeError
(ValueExprEvaluationException typeError)
-
Field Details
-
ZERO
-
statistics
protected final org.apache.commons.math3.stat.descriptive.SummaryStatistics statistics -
population
protected final boolean population -
typeError
-
-
Constructor Details
-
StatisticCollector
public StatisticCollector(boolean population)
-
-
Method Details
-
getFinalValue
- Specified by:
getFinalValue
in interfaceAggregateCollector
- Throws:
ValueExprEvaluationException
-
setTypeError
-
hasError
public boolean hasError() -
addValue
-
computeValue
-