Enumerates the possible types of SqlNode. The values are immutable, canonical constants, so you can use Kinds to find particular types of expressions quickly. To identify a call to a common operator such as '=', use org.apache.calcite.sql.SqlNode#isA: exp.{@link org
| 79 | * class, and we wouldn't need {@code SqlKind}. But we're not.) |
| 80 | */ |
| 81 | public enum SqlKind { |
| 82 | //~ Static fields/initializers --------------------------------------------- |
| 83 | |
| 84 | // the basics |
| 85 | |
| 86 | /** |
| 87 | * Expression not covered by any other {@link SqlKind} value. |
| 88 | * |
| 89 | * @see #OTHER_FUNCTION |
| 90 | */ |
| 91 | OTHER, |
| 92 | |
| 93 | /** |
| 94 | * SELECT statement or sub-query. |
| 95 | */ |
| 96 | SELECT, |
| 97 | |
| 98 | /** |
| 99 | * Sql Hint statement. |
| 100 | */ |
| 101 | HINT, |
| 102 | |
| 103 | /** |
| 104 | * Table reference. |
| 105 | */ |
| 106 | TABLE_REF, |
| 107 | |
| 108 | /** |
| 109 | * JOIN operator or compound FROM clause. |
| 110 | * |
| 111 | * <p>A FROM clause with more than one table is represented as if it were a |
| 112 | * join. For example, "FROM x, y, z" is represented as |
| 113 | * "JOIN(x, JOIN(x, y))". |
| 114 | */ |
| 115 | JOIN, |
| 116 | |
| 117 | /** An identifier. */ |
| 118 | IDENTIFIER, |
| 119 | |
| 120 | /** A literal. */ |
| 121 | LITERAL, |
| 122 | |
| 123 | /** Interval qualifier. */ |
| 124 | INTERVAL_QUALIFIER, |
| 125 | |
| 126 | /** |
| 127 | * Function that is not a special function. |
| 128 | * |
| 129 | * @see #FUNCTION |
| 130 | */ |
| 131 | OTHER_FUNCTION, |
| 132 | |
| 133 | /** |
| 134 | * Input tables have either row semantics or set semantics. |
| 135 | * <ul> |
| 136 | * <li>Row semantics means that the result of the table function is |
| 137 | * decided on a row-by-row basis. |
| 138 | * <li>Set semantics means that the outcome of the function depends on how |