
public abstract class OSQLFunctionMultiValueAbstract<T> extends OSQLFunctionConfigurableAbstract
| Modifier and Type | Field and Description |
|---|---|
protected T |
context |
configuredParametersmaxParams, minParams, name| Constructor and Description |
|---|
OSQLFunctionMultiValueAbstract(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.
|
T |
getResult()
Only called when function aggregates results after all records have been passed to the function.
|
boolean |
shouldMergeDistributedResult()
This method correspond to distributed query execution
|
config, toStringfilterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, mergeDistributedResult, returnDistributedResult, setResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getSyntaxprotected T context
public OSQLFunctionMultiValueAbstract(String iName, int iMinParams, int iMaxParams)
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 T getResult()
OSQLFunctiongetResult in interface OSQLFunctiongetResult 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.