APISonar


io.crate.sql.tree.CurrentTime.Type.DATE

> io > crate > sql > tree > CurrentTime > Type > DATE
io APIs crate APIs sql APIs tree APIs CurrentTime APIs Type APIs DATE APIs

Example 1
private static CurrentTime.Type getDateTimeFunctionType(Token token) {
        switch (token.getType()) {
            case SqlBaseLexer.CURRENT_DATE:
                return CurrentTime.Type.DATE;
            case SqlBaseLexer.CURRENT_TIME:
                return CurrentTime.Type.TIME;
            case SqlBaseLexer.CURRENT_TIMESTAMP:
                return CurrentTime.Type.TIMESTAMP;
            default:
                throw new UnsupportedOperationException("Unsupported special function: " + token.getText());
        }
    }