Java Code Examples for org.apache.phoenix.compile.StatementContext#getCurrentTime()

The following examples show how to use org.apache.phoenix.compile.StatementContext#getCurrentTime() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CurrentTimeParseNode.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
    return new CurrentTimeFunction(context.getCurrentTime());
}
 
Example 2
Source File: CurrentDateParseNode.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
    return new CurrentDateFunction(context.getCurrentTime());
}
 
Example 3
Source File: CurrentTimeParseNode.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
    return new CurrentTimeFunction(context.getCurrentTime());
}
 
Example 4
Source File: CurrentDateParseNode.java    From phoenix with Apache License 2.0 4 votes vote down vote up
@Override
public FunctionExpression create(List<Expression> children, StatementContext context) throws SQLException {
    return new CurrentDateFunction(context.getCurrentTime());
}
 
Example 5
Source File: CurrentDateFunction.java    From phoenix with Apache License 2.0 4 votes vote down vote up
public CurrentDateFunction(List<Expression> children, StatementContext context) throws SQLException {
    this(context.getCurrentTime());
}
 
Example 6
Source File: CurrentTimeFunction.java    From phoenix with Apache License 2.0 4 votes vote down vote up
public CurrentTimeFunction(List<Expression> children, StatementContext context) throws SQLException {
    this(context.getCurrentTime());
}