Class OSQLFunctionMedian
java.lang.Object
com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionPercentile
com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionMedian
- All Implemented Interfaces:
OSQLFunction
Computes the median for a field. Nulls are ignored in the calculation.
Extends and forces the OSQLFunctionPercentile with the 50th percentile.
- Author:
- Fabrizio Fortino
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionPercentile
quantilesFields inherited from class com.orientechnologies.orient.core.sql.functions.OSQLFunctionAbstract
maxParams, minParams, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.sql.functions.stat.OSQLFunctionPercentile
aggregateResults, execute, getResult, mergeDistributedResultMethods 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
-
OSQLFunctionMedian
public OSQLFunctionMedian()
-
-
Method Details
-
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 classOSQLFunctionPercentile- Returns:
- String , never null.
-