|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.query.scalarfunction.CurrentDateTime
public class CurrentDateTime
A 0-ary function that returns the current datetime. The return type is always DateTime.
| Method Summary | |
|---|---|
Value |
evaluate(java.util.List<Value> values)
Evaluates this scalar function. |
java.lang.String |
getFunctionName()
Returns the function's name. |
static CurrentDateTime |
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 there are no parameters given for the function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static CurrentDateTime getInstance()
public java.lang.String getFunctionName()
getFunctionName in interface ScalarFunctionpublic Value evaluate(java.util.List<Value> values)
evaluate in interface ScalarFunctionvalues - Ignored.
public ValueType getReturnType(java.util.List<ValueType> types)
getReturnType in interface ScalarFunctiontypes - Ignored.
public void validateParameters(java.util.List<ValueType> types)
throws InvalidQueryException
validateParameters in interface ScalarFunctiontypes - A list with parameters types. Should be empty for this type of function.
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 | |||||||||