Package org.apache.storm.sql.parser
Enum SqlDdlKeywords
- java.lang.Object
-
- java.lang.Enum<SqlDdlKeywords>
-
- org.apache.storm.sql.parser.SqlDdlKeywords
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlDdlKeywords>
,org.apache.calcite.sql.SqlLiteral.SqlSymbol
public enum SqlDdlKeywords extends Enum<SqlDdlKeywords> implements org.apache.calcite.sql.SqlLiteral.SqlSymbol
Define the keywords that can occur in a CREATE TABLE statement.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRIMARY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlDdlKeywords
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlDdlKeywords[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIMARY
public static final SqlDdlKeywords PRIMARY
-
-
Method Detail
-
values
public static SqlDdlKeywords[] 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 (SqlDdlKeywords c : SqlDdlKeywords.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlDdlKeywords valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-