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
FieldsModifier and TypeFieldDescriptionprotected final booleanprotected final org.apache.commons.math3.stat.descriptive.SummaryStatisticsprotected ValueExprEvaluationExceptionprotected static final Literal - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract LiteralbooleanhasError()voidsetTypeError(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:
 getFinalValuein interfaceAggregateCollector- Throws:
 ValueExprEvaluationException
 - 
setTypeError
 - 
hasError
public boolean hasError() - 
addValue
 - 
computeValue
 
 -