Package org.apache.calcite.jdbc
Interface CalcitePrepare
- All Known Implementing Classes:
- CalcitePrepareImpl
public interface CalcitePrepare
API for a service that prepares statements for execution.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classThe result of analyzing a view.static classThe result of preparing a query.static interfaceContext for preparing a statement.static classThe result of parsing and validating a SQL query and converting it to relational algebra.static classNamespace that allows us to define non-abstract methods inside an interface.static classThe result of parsing and validating a SQL query.static classstatic interfaceCallback to register Spark as the main engine.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Function0<CalcitePrepare>static final TryThreadLocal<Deque<CalcitePrepare.Context>>
- 
Method SummaryModifier and TypeMethodDescriptionanalyzeView(CalcitePrepare.Context context, String sql, boolean fail) Analyzes a view.convert(CalcitePrepare.Context context, String sql) voidexecuteDdl(CalcitePrepare.Context context, SqlNode node) Executes a DDL statement.parse(CalcitePrepare.Context context, String sql) prepareQueryable(CalcitePrepare.Context context, Queryable<T> queryable) prepareSql(CalcitePrepare.Context context, CalcitePrepare.Query<T> query, Type elementType, long maxRowCount) 
- 
Field Details- 
DEFAULT_FACTORY
- 
THREAD_CONTEXT_STACK
 
- 
- 
Method Details- 
parse
- 
convert
- 
executeDdlExecutes a DDL statement.The statement identified itself as DDL in the CalcitePrepare.ParseResult.kind()field.
- 
analyzeViewCalcitePrepare.AnalyzeViewResult analyzeView(CalcitePrepare.Context context, String sql, boolean fail) Analyzes a view.- Parameters:
- context- Context
- sql- View SQL
- fail- Whether to fail (and throw a descriptive error message) if the view is not modifiable
- Returns:
- Result of analyzing the view
 
- 
prepareSql<T> CalcitePrepare.CalciteSignature<T> prepareSql(CalcitePrepare.Context context, CalcitePrepare.Query<T> query, Type elementType, long maxRowCount) 
- 
prepareQueryable<T> CalcitePrepare.CalciteSignature<T> prepareQueryable(CalcitePrepare.Context context, Queryable<T> queryable) 
 
-