|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.scalarfunction.Difference
public class Difference
The binary scalar function difference(). Returns the difference between two number values.
| Method Summary | |
|---|---|
Value |
evaluate(java.util.List<Value> values)
Executes the scalar function difference() on the given values. |
java.lang.String |
getFunctionName()
Returns the function's name. |
static Difference |
getInstance()
Returns the singleton instance of this class. |
ValueType |
getReturnType(java.util.List<ValueType> types)
Returns the return type of the function. |
java.lang.String |
toQueryString(java.util.List<java.lang.String> argumentsQueryStrings)
Returns a string that when given to the query parser will yield a similar scalar function. |
void |
validateParameters(java.util.List<ValueType> types)
Validates that all function parameters are of type NUMBER, and that there are exactly 2 parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Difference getInstance()
public java.lang.String getFunctionName()
getFunctionName in interface ScalarFunctionpublic Value evaluate(java.util.List<Value> values)
evaluate in interface ScalarFunctionvalues - A list of the values on which the scalar function will be performed.
public ValueType getReturnType(java.util.List<ValueType> types)
getReturnType in interface ScalarFunctiontypes - A list of the types of the scalar function parameters.
public void validateParameters(java.util.List<ValueType> types)
throws InvalidQueryException
validateParameters in interface ScalarFunctiontypes - A list with parameters types.
InvalidQueryException - Thrown if the parameters are invalid.public java.lang.String toQueryString(java.util.List<java.lang.String> argumentsQueryStrings)
toQueryString in interface ScalarFunctionargumentsQueryStrings - The query strings of the actual arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||