public abstract class OSQLFunctionMathAbstract extends OSQLFunctionConfigurableAbstract
configuredParameters
maxParams, minParams, name
Constructor and Description |
---|
OSQLFunctionMathAbstract(String iName,
int iMinParams,
int iMaxParams) |
Modifier and Type | Method and Description |
---|---|
boolean |
aggregateResults()
A function can make calculation on several records before returning a result.
|
protected Class<? extends Number> |
getClassWithMorePrecision(Class<? extends Number> iClass1,
Class<? extends Number> iClass2) |
protected Number |
getContextValue(Object iContext,
Class<? extends Number> iClass) |
boolean |
shouldMergeDistributedResult()
This method correspond to distributed query execution
|
config, toString
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getSyntax
public OSQLFunctionMathAbstract(String iName, int iMinParams, int iMaxParams)
protected Class<? extends Number> getClassWithMorePrecision(Class<? extends Number> iClass1, Class<? extends Number> iClass2)
public boolean aggregateResults()
OSQLFunction
Example of such function : sum, count, max, min ...
The final result of the aggregation is obtain by calling OSQLFunction.getResult()
aggregateResults
in interface OSQLFunction
aggregateResults
in class OSQLFunctionAbstract
public boolean shouldMergeDistributedResult()
OSQLFunction
shouldMergeDistributedResult
in interface OSQLFunction
shouldMergeDistributedResult
in class OSQLFunctionAbstract
true
if results that comes from different nodes need to be merged to obtain
valid one, false
otherwiseCopyright © 2009–2020 OrientDB. All rights reserved.