Class StatisticCollector

  • All Implemented Interfaces:
    org.eclipse.rdf4j.query.parser.sparql.aggregate.AggregateCollector
    Direct Known Subclasses:
    StandardDeviationCollector, VarianceCollector

    @Experimental
    public abstract class StatisticCollector
    extends Object
    implements org.eclipse.rdf4j.query.parser.sparql.aggregate.AggregateCollector
    AggregateCollector implementation that processes SPARQL statistical functions based on input Literal values.
    Author:
    Tomas Kovachev t.kovachev1996@gmail.com
    • Field Detail

      • ZERO

        protected static final org.eclipse.rdf4j.model.Literal ZERO
      • statistics

        protected final org.apache.commons.math3.stat.descriptive.SummaryStatistics statistics
      • population

        protected final boolean population
    • Constructor Detail

      • StatisticCollector

        public StatisticCollector​(boolean population)
    • Method Detail

      • hasError

        public boolean hasError()
      • addValue

        public void addValue​(org.eclipse.rdf4j.model.Literal val)
      • computeValue

        protected abstract org.eclipse.rdf4j.model.Literal computeValue()