
public abstract class OSQLFunctionMathAbstract extends OSQLFunctionConfigurableAbstract
configuredParametersmaxParams, 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, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getResult, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getSyntaxpublic OSQLFunctionMathAbstract(String iName, int iMinParams, int iMaxParams)
protected Class<? extends Number> getClassWithMorePrecision(Class<? extends Number> iClass1, Class<? extends Number> iClass2)
public boolean aggregateResults()
OSQLFunctionExample of such function : sum, count, max, min ...
The final result of the aggregation is obtain by calling OSQLFunction.getResult()
aggregateResults in interface OSQLFunctionaggregateResults in class OSQLFunctionAbstractpublic boolean shouldMergeDistributedResult()
OSQLFunctionshouldMergeDistributedResult in interface OSQLFunctionshouldMergeDistributedResult in class OSQLFunctionAbstracttrue if results that comes from different nodes need to be merged to obtain
valid one, false otherwiseCopyright © 2009–2025 OrientDB. All rights reserved.