Package org.apache.calcite.jdbc
Class CalcitePrepare.ParseResult
java.lang.Object
org.apache.calcite.jdbc.CalcitePrepare.ParseResult
- Direct Known Subclasses:
CalcitePrepare.ConvertResult
- Enclosing interface:
CalcitePrepare
The result of parsing and validating a SQL query.
-
Field Summary
Modifier and TypeFieldDescriptionfinal CalcitePrepareImpl
final RelDataType
final String
final SqlNode
final RelDataTypeFactory
-
Constructor Summary
ConstructorDescriptionParseResult
(CalcitePrepareImpl prepare, SqlValidator validator, String sql, SqlNode sqlNode, RelDataType rowType) -
Method Summary
-
Field Details
-
prepare
-
sql
-
sqlNode
-
rowType
-
typeFactory
-
-
Constructor Details
-
ParseResult
public ParseResult(CalcitePrepareImpl prepare, SqlValidator validator, String sql, SqlNode sqlNode, RelDataType rowType)
-
-
Method Details
-
kind
Returns the kind of statement.Possibilities include:
- Queries: usually
SqlKind.SELECT
, but other query operators such asSqlKind.UNION
andSqlKind.ORDER_BY
are possible - DML statements:
SqlKind.INSERT
,SqlKind.UPDATE
etc. - Session control statements:
SqlKind.COMMIT
- DDL statements:
SqlKind.CREATE_TABLE
,SqlKind.DROP_INDEX
- Returns:
- Kind of statement, never null
- Queries: usually
-