Class OSQLFunctionStandardDeviation
java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionVariance
com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionStandardDeviation
- All Implemented Interfaces:
OSQLFunction
Compute the standard deviation for a given field.
- Author:
- Fabrizio Fortino
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
maxParams, minParams, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResult(OCommandContext ctx) Only called when function aggregates results after all records have been passed to the function.Returns a convenient SQL String representation of the function.mergeDistributedResult(List<Object> resultsToMerge) This method correspond to distributed query executionMethods inherited from class com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionVariance
aggregateResults, executeMethods inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
config, filterResult, getDatabase, getDistributedStorageId, getMaxParams, getMinParams, getName, getSingleItem, getSingleProperty, returnDistributedResult, setResult, shouldMergeDistributedResult, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OSQLFunctionStandardDeviation
public OSQLFunctionStandardDeviation()
-
-
Method Details
-
getResult
Description copied from interface:OSQLFunctionOnly called when function aggregates results after all records have been passed to the function.- Specified by:
getResultin interfaceOSQLFunction- Overrides:
getResultin classOSQLFunctionVariance- Parameters:
ctx- TODO- Returns:
- Aggregation result
-
mergeDistributedResult
Description copied from interface:OSQLFunctionThis method correspond to distributed query execution- Specified by:
mergeDistributedResultin interfaceOSQLFunction- Overrides:
mergeDistributedResultin classOSQLFunctionVariance- Parameters:
resultsToMerge- is the results that comes from different nodes- Returns:
- is the valid merged result
-
getSyntax
Description copied from interface:OSQLFunctionReturns a convenient SQL String representation of the function.Example :
myFunction( param1, param2, [optionalParam3])
This text will be used in exception messages.
- Specified by:
getSyntaxin interfaceOSQLFunction- Overrides:
getSyntaxin classOSQLFunctionVariance- Returns:
- String , never null.
-