Package org.apache.calcite.sql.advise
Enum SqlSimpleParser.TokenType
- java.lang.Object
-
- java.lang.Enum<SqlSimpleParser.TokenType>
-
- org.apache.calcite.sql.advise.SqlSimpleParser.TokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlSimpleParser.TokenType>
- Enclosing class:
- SqlSimpleParser
static enum SqlSimpleParser.TokenType extends java.lang.Enum<SqlSimpleParser.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BY
COMMA
COMMENT
DQID
double-quoted identifier, e.g.EXCEPT
FROM
GROUP
HAVING
ID
identifier, or indeed any miscellaneous sequence of charactersINTERSECT
JOIN
LPAREN
left parenthesisMINUS
ON
ORDER
QUERY
A token created by reducing an entire sub-query.RPAREN
right parenthesisSELECT
SQID
single-quoted string literal, e.g.UNION
USING
WHERE
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
sql()
static SqlSimpleParser.TokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SqlSimpleParser.TokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SELECT
public static final SqlSimpleParser.TokenType SELECT
-
FROM
public static final SqlSimpleParser.TokenType FROM
-
JOIN
public static final SqlSimpleParser.TokenType JOIN
-
ON
public static final SqlSimpleParser.TokenType ON
-
USING
public static final SqlSimpleParser.TokenType USING
-
WHERE
public static final SqlSimpleParser.TokenType WHERE
-
GROUP
public static final SqlSimpleParser.TokenType GROUP
-
HAVING
public static final SqlSimpleParser.TokenType HAVING
-
ORDER
public static final SqlSimpleParser.TokenType ORDER
-
BY
public static final SqlSimpleParser.TokenType BY
-
UNION
public static final SqlSimpleParser.TokenType UNION
-
INTERSECT
public static final SqlSimpleParser.TokenType INTERSECT
-
EXCEPT
public static final SqlSimpleParser.TokenType EXCEPT
-
MINUS
public static final SqlSimpleParser.TokenType MINUS
-
LPAREN
public static final SqlSimpleParser.TokenType LPAREN
left parenthesis
-
RPAREN
public static final SqlSimpleParser.TokenType RPAREN
right parenthesis
-
ID
public static final SqlSimpleParser.TokenType ID
identifier, or indeed any miscellaneous sequence of characters
-
DQID
public static final SqlSimpleParser.TokenType DQID
double-quoted identifier, e.g. "FOO""BAR"
-
SQID
public static final SqlSimpleParser.TokenType SQID
single-quoted string literal, e.g. 'foobar'
-
COMMENT
public static final SqlSimpleParser.TokenType COMMENT
-
COMMA
public static final SqlSimpleParser.TokenType COMMA
-
QUERY
public static final SqlSimpleParser.TokenType QUERY
A token created by reducing an entire sub-query.
-
-
Method Detail
-
values
public static SqlSimpleParser.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqlSimpleParser.TokenType c : SqlSimpleParser.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlSimpleParser.TokenType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
sql
public java.lang.String sql()
-
-