public abstract class OSQLFunctionMultiValueAbstract<T> extends OSQLFunctionConfigurableAbstract
Modifier and Type | Field and Description |
---|---|
protected T |
context |
configuredParameters
maxParams, 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, toString
filterResult, getDistributedStorageId, getMaxParams, getMinParams, getName, getSingleItem, getSingleProperty, mergeDistributedResult, returnDistributedResult, setResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getSyntax
protected T context
public OSQLFunctionMultiValueAbstract(String iName, int iMinParams, int iMaxParams)
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 T getResult()
OSQLFunction
getResult
in interface OSQLFunction
getResult
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.