Class OSQLFunctionMathAbstract
java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
com.orientechnologies.orient.core.sql.functions.OSQLFunctionConfigurableAbstract
com.orientechnologies.orient.core.sql.functions.math.OSQLFunctionMathAbstract
- All Implemented Interfaces:
OSQLFunction
- Direct Known Subclasses:
OSQLFunctionAbsoluteValue,OSQLFunctionAverage,OSQLFunctionCount,OSQLFunctionDecimal,OSQLFunctionEval,OSQLFunctionHeuristicPathFinderAbstract,OSQLFunctionHeuristicPathFinderAbstract,OSQLFunctionInterval,OSQLFunctionMax,OSQLFunctionMin,OSQLFunctionPathFinder,OSQLFunctionPathFinder,OSQLFunctionShortestPath,OSQLFunctionShortestPath,OSQLFunctionSum
Abstract class for math function.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionConfigurableAbstract
configuredParametersFields inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
maxParams, minParams, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA function can make calculation on several records before returning a result.getClassWithMorePrecision(Class<? extends Number> iClass1, Class<? extends Number> iClass2) protected NumbergetContextValue(Object iContext, Class<? extends Number> iClass) booleanThis method correspond to distributed query executionMethods inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionConfigurableAbstract
config, toStringMethods inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.functions.OSQLFunction
execute, getSyntax
-
Constructor Details
-
OSQLFunctionMathAbstract
-
-
Method Details
-
getContextValue
-
getClassWithMorePrecision
-
aggregateResults
public boolean aggregateResults()Description copied from interface:OSQLFunctionA function can make calculation on several records before returning a result.Example of such function : sum, count, max, min ...
The final result of the aggregation is obtain by calling
OSQLFunction.getResult()- Specified by:
aggregateResultsin interfaceOSQLFunction- Overrides:
aggregateResultsin classOSQLFunctionAbstract- Returns:
- true if function aggregate results
-
shouldMergeDistributedResult
public boolean shouldMergeDistributedResult()Description copied from interface:OSQLFunctionThis method correspond to distributed query execution- Specified by:
shouldMergeDistributedResultin interfaceOSQLFunction- Overrides:
shouldMergeDistributedResultin classOSQLFunctionAbstract- Returns:
trueif results that comes from different nodes need to be merged to obtain valid one,falseotherwise
-