public class AvgSPARQLFunctionSymbolImpl extends UnaryNumericSPARQLAggregationFunctionSymbolImpl
SPARQLAggregationFunctionSymbol.AggregationSimplificationFunctionSymbol.FunctionalTermNullability| Modifier | Constructor and Description |
|---|---|
protected |
AvgSPARQLFunctionSymbolImpl(RDFTermType rootRdfTermType,
boolean isDistinct) |
| Modifier and Type | Method and Description |
|---|---|
protected ImmutableFunctionalTerm |
createAggregate(ConcreteNumericRDFDatatype rdfType,
ImmutableTerm dbTerm,
TermFactory termFactory) |
protected SPARQLAggregationFunctionSymbol.AggregationSimplification |
decomposeMultityped(ImmutableTerm subTerm,
it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<RDFTermType> subTermPossibleTypes,
boolean hasGroupBy,
VariableNullability variableNullability,
VariableGenerator variableGenerator,
TermFactory termFactory)
Here the aggregated value will be a DB decimal
(we ignore the distinction between decimal, float and double)
3 possible XSD datatypes are possible for the output: DECIMAL, FLOAT and DOUBLE
|
Constant |
evaluateEmptyBag(TermFactory termFactory) |
protected ConcreteNumericRDFDatatype |
inferTypeWhenNonEmpty(ConcreteNumericRDFDatatype inputNumericDatatype,
TypeFactory typeFactory) |
buildTermAfterEvaluation, canBePostProcessed, createNonNumericRequest, decomposeIntoDBAggregation, decomposeUnityped, extractNonNumericTypes, inferType, isAggregation, isAlwaysInjectiveInTheAbsenceOfNonInjectiveFunctionalTerms, isDistinct, isNullable, tolerateNullsgetIRI, getOfficialNameextractLexicalTerm, extractRDFTermTypeTerm, isRDFFunctionalTerm, mayReturnNullWithoutNullArgumentsanalyzeInjectivity, canBeSafelyDecomposedIntoConjunction, decomposeInjectiveTopFunctionalTerm, enableIfElseNullLifting, evaluateIsNotNull, evaluateNullability, evaluateStrictEq, evaluateStrictEqWithFunctionalTerm, evaluateStrictEqWithNonNullConstant, getExpectedBaseType, getExpectedBaseTypes, isDeterministic, isInjective, proposeProvenanceVariables, simplify, simplifyAsGuaranteedToBeNonNull, transformIntoRegularArguments, tryToLiftMagicNumbersequals, getArity, getName, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIRI, getOfficialNameanalyzeInjectivity, evaluateIsNotNull, evaluateNullability, evaluateStrictEq, getExpectedBaseType, isDeterministic, proposeProvenanceVariables, simplify, simplifyAsGuaranteedToBeNonNullprotected AvgSPARQLFunctionSymbolImpl(RDFTermType rootRdfTermType, boolean isDistinct)
protected ImmutableFunctionalTerm createAggregate(ConcreteNumericRDFDatatype rdfType, ImmutableTerm dbTerm, TermFactory termFactory)
createAggregate in class UnaryNumericSPARQLAggregationFunctionSymbolImplprotected ConcreteNumericRDFDatatype inferTypeWhenNonEmpty(ConcreteNumericRDFDatatype inputNumericDatatype, TypeFactory typeFactory)
inferTypeWhenNonEmpty in class UnaryNumericSPARQLAggregationFunctionSymbolImplprotected SPARQLAggregationFunctionSymbol.AggregationSimplification decomposeMultityped(ImmutableTerm subTerm, it.unibz.inf.ontop.com.google.common.collect.ImmutableSet<RDFTermType> subTermPossibleTypes, boolean hasGroupBy, VariableNullability variableNullability, VariableGenerator variableGenerator, TermFactory termFactory)
decomposeMultityped in class UnaryNumericSPARQLAggregationFunctionSymbolImplpublic Constant evaluateEmptyBag(TermFactory termFactory)
Copyright © 2009–2021 Free University of Bozen-Bolzano. All rights reserved.