public class Exec extends HplsqlBaseVisitor<Integer>
Modifier and Type | Class and Description |
---|---|
static class |
Exec.OnError |
Modifier and Type | Field and Description |
---|---|
boolean |
buildSql |
Conf |
conf |
static String |
ERRORCODE |
static String |
HOSTCODE |
boolean |
inCallStmt |
static String |
SQLCODE |
static String |
SQLSTATE |
ArrayList<String> |
stmtConnList |
static String |
VERSION |
visitAlter_table_add_constraint_item, visitAlter_table_add_constraint, visitAlter_table_item, visitAssignment_stmt_item, visitAssignment_stmt, visitBegin_transaction_stmt, visitBlock_end, visitBlock, visitBool_expr_atom, visitBool_expr_binary_operator, visitBool_expr_logical_operator, visitBool_expr_multi_in, visitBool_expr_single_in, visitCmp_source, visitCollect_stats_clause, visitCollect_stats_stmt, visitCommit_stmt, visitCopy_file_option, visitCopy_option, visitCopy_source, visitCopy_target, visitCreate_database_option, visitCreate_function_return, visitCreate_index_col, visitCreate_routine_option, visitCreate_routine_options, visitCreate_routine_param_item, visitCreate_routine_params, visitCreate_table_column_cons, visitCreate_table_column_inline_cons, visitCreate_table_columns_item, visitCreate_table_columns, visitCreate_table_definition, visitCreate_table_fk_action, visitCreate_table_hive_row_format_fields, visitCreate_table_hive_row_format, visitCreate_table_options_item, visitCreate_table_options, visitCreate_table_preoptions_item, visitCreate_table_preoptions_td_item, visitCreate_table_preoptions, visitCte_select_cols, visitCte_select_stmt_item, visitCursor_with_return, visitCursor_without_return, visitDeclare_block_inplace, visitDeclare_block, visitDeclare_stmt_item, visitDeclare_stmt, visitDelete_alias, visitDouble_quotedString, visitDtype_attr, visitDtype_default, visitDtype_len, visitDtype, visitElse_block, visitElseif_block, visitEnd_transaction_stmt, visitException_block, visitExpr_atom, visitExpr_case, visitExpr_concat_item, visitExpr_func_all_distinct, visitExpr_func_over_clause, visitExpr_func_params, visitExpr_func_partition_by_clause, visitFile_name, visitFrom_alias_clause, visitFrom_join_type_clause, visitFrom_table_clause, visitFrom_table_values_row, visitFullselect_set_clause, visitFullselect_stmt_item, visitFunc_param, visitGet_diag_stmt_item, visitGet_diag_stmt, visitGrant_stmt_item, visitGroup_by_clause, visitHaving_clause, visitHost, visitIf_stmt, visitIndex_mssql_storage_clause, visitIndex_storage_clause, visitInsert_stmt_cols, visitInsert_stmt_row, visitInsert_stmt_rows, visitInterval_item, visitInto_clause, visitMerge_action, visitMerge_condition, visitMerge_table, visitNon_reserved_words, visitNull_stmt, visitOrder_by_clause, visitPackage_body_item, visitPackage_body, visitPackage_spec_item, visitPackage_spec, visitProc_block, visitQualify_clause, visitRaise_stmt, visitRollback_stmt, visitSelect_list_alias, visitSelect_list_asterisk, visitSelect_list_item, visitSelect_list_limit, visitSelect_list_set, visitSelect_options, visitSemicolon_stmt, visitSet_mssql_session_option, visitSet_session_option, visitSet_teradata_session_option, visitSingle_block_stmt, visitUpdate_assignment, visitUpdate_table, visitUpdate_upsert, visitUsing_clause
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public static final String VERSION
public static final String ERRORCODE
public static final String SQLCODE
public static final String SQLSTATE
public static final String HOSTCODE
public Conf conf
public boolean buildSql
public boolean inCallStmt
public Var setVariable(String name, Var value)
public void addVariable(Var var)
public void addHandler(Handler handler)
public void addReturnCursor(Var var)
public Var consumeReturnCursor(String routine)
public void stackPush(Var var)
public void stackPush(String val)
public void stackPush(StringBuilder val)
public void stackPush(Boolean val)
public Var stackPeek()
public Var stackPop()
public void callStackPush(String val)
public String callStackPeek()
public String callStackPop()
public void enterScope(Scope scope)
public void enterScope(Scope.Type type)
public void enterScope(Scope.Type type, Package pack)
public void leaveScope()
public void signal(Signal signal)
public void signal(Signal.Type type, String value, Exception exception)
public void signal(Signal.Type type, String value)
public void signal(Signal.Type type)
public void signal(Query query)
public void signal(Exception exception)
public void resignal()
public void resignal(Signal signal)
public Signal signalPop()
public Signal signalPeek()
public String labelPop()
public Query executeQuery(org.antlr.v4.runtime.ParserRuleContext ctx, Query query, String connProfile)
public Query executeQuery(org.antlr.v4.runtime.ParserRuleContext ctx, String sql, String connProfile)
public Query prepareQuery(org.antlr.v4.runtime.ParserRuleContext ctx, Query query, String connProfile)
public Query prepareQuery(org.antlr.v4.runtime.ParserRuleContext ctx, String sql, String connProfile)
public Query executeSql(org.antlr.v4.runtime.ParserRuleContext ctx, String sql, String connProfile)
public void registerUdf()
public void setSqlCode(int sqlcode)
public void setSqlCode(Exception exception)
public void setSqlState(String sqlstate)
public void setHostCode(int code)
public void setSqlSuccess()
public void setSqlNoData()
public Integer run(String[] args) throws Exception
Exception
public Var run()
public Integer visitProgram(HplsqlParser.ProgramContext ctx)
visitProgram
in interface HplsqlVisitor<Integer>
visitProgram
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBegin_end_block(HplsqlParser.Begin_end_blockContext ctx)
visitBegin_end_block
in interface HplsqlVisitor<Integer>
visitBegin_end_block
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitStmt(HplsqlParser.StmtContext ctx)
visitStmt
in interface HplsqlVisitor<Integer>
visitStmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSelect_stmt(HplsqlParser.Select_stmtContext ctx)
visitSelect_stmt
in interface HplsqlVisitor<Integer>
visitSelect_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCte_select_stmt(HplsqlParser.Cte_select_stmtContext ctx)
HplsqlBaseVisitor
HplsqlParser.cte_select_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCte_select_stmt
in interface HplsqlVisitor<Integer>
visitCte_select_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFullselect_stmt(HplsqlParser.Fullselect_stmtContext ctx)
HplsqlBaseVisitor
HplsqlParser.fullselect_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFullselect_stmt
in interface HplsqlVisitor<Integer>
visitFullselect_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSubselect_stmt(HplsqlParser.Subselect_stmtContext ctx)
HplsqlBaseVisitor
HplsqlParser.subselect_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSubselect_stmt
in interface HplsqlVisitor<Integer>
visitSubselect_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSelect_list(HplsqlParser.Select_listContext ctx)
HplsqlBaseVisitor
HplsqlParser.select_list()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSelect_list
in interface HplsqlVisitor<Integer>
visitSelect_list
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFrom_clause(HplsqlParser.From_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.from_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFrom_clause
in interface HplsqlVisitor<Integer>
visitFrom_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFrom_table_name_clause(HplsqlParser.From_table_name_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.from_table_name_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFrom_table_name_clause
in interface HplsqlVisitor<Integer>
visitFrom_table_name_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFrom_subselect_clause(HplsqlParser.From_subselect_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.from_subselect_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFrom_subselect_clause
in interface HplsqlVisitor<Integer>
visitFrom_subselect_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFrom_join_clause(HplsqlParser.From_join_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.from_join_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFrom_join_clause
in interface HplsqlVisitor<Integer>
visitFrom_join_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFrom_table_values_clause(HplsqlParser.From_table_values_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.from_table_values_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFrom_table_values_clause
in interface HplsqlVisitor<Integer>
visitFrom_table_values_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitWhere_clause(HplsqlParser.Where_clauseContext ctx)
HplsqlBaseVisitor
HplsqlParser.where_clause()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWhere_clause
in interface HplsqlVisitor<Integer>
visitWhere_clause
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSelect_options_item(HplsqlParser.Select_options_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.select_options_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSelect_options_item
in interface HplsqlVisitor<Integer>
visitSelect_options_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitColumn_name(HplsqlParser.Column_nameContext ctx)
visitColumn_name
in interface HplsqlVisitor<Integer>
visitColumn_name
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitTable_name(HplsqlParser.Table_nameContext ctx)
visitTable_name
in interface HplsqlVisitor<Integer>
visitTable_name
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitInsert_stmt(HplsqlParser.Insert_stmtContext ctx)
visitInsert_stmt
in interface HplsqlVisitor<Integer>
visitInsert_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitInsert_directory_stmt(HplsqlParser.Insert_directory_stmtContext ctx)
visitInsert_directory_stmt
in interface HplsqlVisitor<Integer>
visitInsert_directory_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitException_block_item(HplsqlParser.Exception_block_itemContext ctx)
visitException_block_item
in interface HplsqlVisitor<Integer>
visitException_block_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDeclare_var_item(HplsqlParser.Declare_var_itemContext ctx)
visitDeclare_var_item
in interface HplsqlVisitor<Integer>
visitDeclare_var_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAllocate_cursor_stmt(HplsqlParser.Allocate_cursor_stmtContext ctx)
visitAllocate_cursor_stmt
in interface HplsqlVisitor<Integer>
visitAllocate_cursor_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAssociate_locator_stmt(HplsqlParser.Associate_locator_stmtContext ctx)
visitAssociate_locator_stmt
in interface HplsqlVisitor<Integer>
visitAssociate_locator_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDeclare_cursor_item(HplsqlParser.Declare_cursor_itemContext ctx)
visitDeclare_cursor_item
in interface HplsqlVisitor<Integer>
visitDeclare_cursor_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDescribe_stmt(HplsqlParser.Describe_stmtContext ctx)
visitDescribe_stmt
in interface HplsqlVisitor<Integer>
visitDescribe_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDrop_stmt(HplsqlParser.Drop_stmtContext ctx)
visitDrop_stmt
in interface HplsqlVisitor<Integer>
visitDrop_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitOpen_stmt(HplsqlParser.Open_stmtContext ctx)
visitOpen_stmt
in interface HplsqlVisitor<Integer>
visitOpen_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFetch_stmt(HplsqlParser.Fetch_stmtContext ctx)
visitFetch_stmt
in interface HplsqlVisitor<Integer>
visitFetch_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitClose_stmt(HplsqlParser.Close_stmtContext ctx)
visitClose_stmt
in interface HplsqlVisitor<Integer>
visitClose_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCmp_stmt(HplsqlParser.Cmp_stmtContext ctx)
visitCmp_stmt
in interface HplsqlVisitor<Integer>
visitCmp_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCopy_stmt(HplsqlParser.Copy_stmtContext ctx)
visitCopy_stmt
in interface HplsqlVisitor<Integer>
visitCopy_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCopy_from_local_stmt(HplsqlParser.Copy_from_local_stmtContext ctx)
visitCopy_from_local_stmt
in interface HplsqlVisitor<Integer>
visitCopy_from_local_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDeclare_handler_item(HplsqlParser.Declare_handler_itemContext ctx)
visitDeclare_handler_item
in interface HplsqlVisitor<Integer>
visitDeclare_handler_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDeclare_condition_item(HplsqlParser.Declare_condition_itemContext ctx)
visitDeclare_condition_item
in interface HplsqlVisitor<Integer>
visitDeclare_condition_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDeclare_temporary_table_item(HplsqlParser.Declare_temporary_table_itemContext ctx)
visitDeclare_temporary_table_item
in interface HplsqlVisitor<Integer>
visitDeclare_temporary_table_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_stmt(HplsqlParser.Create_table_stmtContext ctx)
visitCreate_table_stmt
in interface HplsqlVisitor<Integer>
visitCreate_table_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_hive_item(HplsqlParser.Create_table_options_hive_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_hive_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_hive_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_hive_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_ora_item(HplsqlParser.Create_table_options_ora_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_ora_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_ora_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_ora_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_td_item(HplsqlParser.Create_table_options_td_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_td_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_td_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_td_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_mssql_item(HplsqlParser.Create_table_options_mssql_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_mssql_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_mssql_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_mssql_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_db2_item(HplsqlParser.Create_table_options_db2_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_db2_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_db2_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_db2_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_table_options_mysql_item(HplsqlParser.Create_table_options_mysql_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.create_table_options_mysql_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreate_table_options_mysql_item
in interface HplsqlVisitor<Integer>
visitCreate_table_options_mysql_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_local_temp_table_stmt(HplsqlParser.Create_local_temp_table_stmtContext ctx)
visitCreate_local_temp_table_stmt
in interface HplsqlVisitor<Integer>
visitCreate_local_temp_table_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAlter_table_stmt(HplsqlParser.Alter_table_stmtContext ctx)
visitAlter_table_stmt
in interface HplsqlVisitor<Integer>
visitAlter_table_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_database_stmt(HplsqlParser.Create_database_stmtContext ctx)
visitCreate_database_stmt
in interface HplsqlVisitor<Integer>
visitCreate_database_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_function_stmt(HplsqlParser.Create_function_stmtContext ctx)
visitCreate_function_stmt
in interface HplsqlVisitor<Integer>
visitCreate_function_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_package_stmt(HplsqlParser.Create_package_stmtContext ctx)
visitCreate_package_stmt
in interface HplsqlVisitor<Integer>
visitCreate_package_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_package_body_stmt(HplsqlParser.Create_package_body_stmtContext ctx)
visitCreate_package_body_stmt
in interface HplsqlVisitor<Integer>
visitCreate_package_body_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_procedure_stmt(HplsqlParser.Create_procedure_stmtContext ctx)
visitCreate_procedure_stmt
in interface HplsqlVisitor<Integer>
visitCreate_procedure_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCreate_index_stmt(HplsqlParser.Create_index_stmtContext ctx)
visitCreate_index_stmt
in interface HplsqlVisitor<Integer>
visitCreate_index_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAssignment_stmt_single_item(HplsqlParser.Assignment_stmt_single_itemContext ctx)
visitAssignment_stmt_single_item
in interface HplsqlVisitor<Integer>
visitAssignment_stmt_single_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAssignment_stmt_multiple_item(HplsqlParser.Assignment_stmt_multiple_itemContext ctx)
visitAssignment_stmt_multiple_item
in interface HplsqlVisitor<Integer>
visitAssignment_stmt_multiple_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitAssignment_stmt_select_item(HplsqlParser.Assignment_stmt_select_itemContext ctx)
visitAssignment_stmt_select_item
in interface HplsqlVisitor<Integer>
visitAssignment_stmt_select_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr(HplsqlParser.ExprContext ctx)
visitExpr
in interface HplsqlVisitor<Integer>
visitExpr
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBool_expr(HplsqlParser.Bool_exprContext ctx)
visitBool_expr
in interface HplsqlVisitor<Integer>
visitBool_expr
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBool_expr_binary(HplsqlParser.Bool_expr_binaryContext ctx)
HplsqlBaseVisitor
HplsqlParser.bool_expr_binary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBool_expr_binary
in interface HplsqlVisitor<Integer>
visitBool_expr_binary
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBool_expr_unary(HplsqlParser.Bool_expr_unaryContext ctx)
HplsqlBaseVisitor
HplsqlParser.bool_expr_unary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBool_expr_unary
in interface HplsqlVisitor<Integer>
visitBool_expr_unary
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_select(HplsqlParser.Expr_selectContext ctx)
visitExpr_select
in interface HplsqlVisitor<Integer>
visitExpr_select
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_file(HplsqlParser.Expr_fileContext ctx)
visitExpr_file
in interface HplsqlVisitor<Integer>
visitExpr_file
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_cursor_attribute(HplsqlParser.Expr_cursor_attributeContext ctx)
visitExpr_cursor_attribute
in interface HplsqlVisitor<Integer>
visitExpr_cursor_attribute
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_func(HplsqlParser.Expr_funcContext ctx)
visitExpr_func
in interface HplsqlVisitor<Integer>
visitExpr_func
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_agg_window_func(HplsqlParser.Expr_agg_window_funcContext ctx)
visitExpr_agg_window_func
in interface HplsqlVisitor<Integer>
visitExpr_agg_window_func
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_spec_func(HplsqlParser.Expr_spec_funcContext ctx)
visitExpr_spec_func
in interface HplsqlVisitor<Integer>
visitExpr_spec_func
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitInclude_stmt(@NotNull HplsqlParser.Include_stmtContext ctx)
visitInclude_stmt
in interface HplsqlVisitor<Integer>
visitInclude_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitIf_plsql_stmt(HplsqlParser.If_plsql_stmtContext ctx)
visitIf_plsql_stmt
in interface HplsqlVisitor<Integer>
visitIf_plsql_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitIf_tsql_stmt(HplsqlParser.If_tsql_stmtContext ctx)
visitIf_tsql_stmt
in interface HplsqlVisitor<Integer>
visitIf_tsql_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitIf_bteq_stmt(HplsqlParser.If_bteq_stmtContext ctx)
visitIf_bteq_stmt
in interface HplsqlVisitor<Integer>
visitIf_bteq_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitUse_stmt(HplsqlParser.Use_stmtContext ctx)
visitUse_stmt
in interface HplsqlVisitor<Integer>
visitUse_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitValues_into_stmt(HplsqlParser.Values_into_stmtContext ctx)
visitValues_into_stmt
in interface HplsqlVisitor<Integer>
visitValues_into_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitWhile_stmt(HplsqlParser.While_stmtContext ctx)
visitWhile_stmt
in interface HplsqlVisitor<Integer>
visitWhile_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFor_cursor_stmt(HplsqlParser.For_cursor_stmtContext ctx)
visitFor_cursor_stmt
in interface HplsqlVisitor<Integer>
visitFor_cursor_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitFor_range_stmt(HplsqlParser.For_range_stmtContext ctx)
visitFor_range_stmt
in interface HplsqlVisitor<Integer>
visitFor_range_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExec_stmt(HplsqlParser.Exec_stmtContext ctx)
visitExec_stmt
in interface HplsqlVisitor<Integer>
visitExec_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitCall_stmt(HplsqlParser.Call_stmtContext ctx)
visitCall_stmt
in interface HplsqlVisitor<Integer>
visitCall_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExit_stmt(HplsqlParser.Exit_stmtContext ctx)
visitExit_stmt
in interface HplsqlVisitor<Integer>
visitExit_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBreak_stmt(HplsqlParser.Break_stmtContext ctx)
visitBreak_stmt
in interface HplsqlVisitor<Integer>
visitBreak_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitLeave_stmt(HplsqlParser.Leave_stmtContext ctx)
visitLeave_stmt
in interface HplsqlVisitor<Integer>
visitLeave_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitPrint_stmt(HplsqlParser.Print_stmtContext ctx)
visitPrint_stmt
in interface HplsqlVisitor<Integer>
visitPrint_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitQuit_stmt(HplsqlParser.Quit_stmtContext ctx)
visitQuit_stmt
in interface HplsqlVisitor<Integer>
visitQuit_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSignal_stmt(HplsqlParser.Signal_stmtContext ctx)
visitSignal_stmt
in interface HplsqlVisitor<Integer>
visitSignal_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitResignal_stmt(HplsqlParser.Resignal_stmtContext ctx)
visitResignal_stmt
in interface HplsqlVisitor<Integer>
visitResignal_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitReturn_stmt(HplsqlParser.Return_stmtContext ctx)
visitReturn_stmt
in interface HplsqlVisitor<Integer>
visitReturn_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSet_current_schema_option(HplsqlParser.Set_current_schema_optionContext ctx)
visitSet_current_schema_option
in interface HplsqlVisitor<Integer>
visitSet_current_schema_option
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitTruncate_stmt(HplsqlParser.Truncate_stmtContext ctx)
visitTruncate_stmt
in interface HplsqlVisitor<Integer>
visitTruncate_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitMap_object_stmt(HplsqlParser.Map_object_stmtContext ctx)
visitMap_object_stmt
in interface HplsqlVisitor<Integer>
visitMap_object_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitUpdate_stmt(HplsqlParser.Update_stmtContext ctx)
visitUpdate_stmt
in interface HplsqlVisitor<Integer>
visitUpdate_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDelete_stmt(HplsqlParser.Delete_stmtContext ctx)
visitDelete_stmt
in interface HplsqlVisitor<Integer>
visitDelete_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitMerge_stmt(HplsqlParser.Merge_stmtContext ctx)
visitMerge_stmt
in interface HplsqlVisitor<Integer>
visitMerge_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitHive(@NotNull HplsqlParser.HiveContext ctx)
visitHive
in interface HplsqlVisitor<Integer>
visitHive
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitHive_item(HplsqlParser.Hive_itemContext ctx)
HplsqlBaseVisitor
HplsqlParser.hive_item()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitHive_item
in interface HplsqlVisitor<Integer>
visitHive_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitHost_cmd(HplsqlParser.Host_cmdContext ctx)
visitHost_cmd
in interface HplsqlVisitor<Integer>
visitHost_cmd
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitHost_stmt(HplsqlParser.Host_stmtContext ctx)
HplsqlBaseVisitor
HplsqlParser.host_stmt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitHost_stmt
in interface HplsqlVisitor<Integer>
visitHost_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic void execHost(org.antlr.v4.runtime.ParserRuleContext ctx, String cmd)
public Integer visitExpr_stmt(HplsqlParser.Expr_stmtContext ctx)
visitExpr_stmt
in interface HplsqlVisitor<Integer>
visitExpr_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_concat(HplsqlParser.Expr_concatContext ctx)
visitExpr_concat
in interface HplsqlVisitor<Integer>
visitExpr_concat
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_case_simple(HplsqlParser.Expr_case_simpleContext ctx)
visitExpr_case_simple
in interface HplsqlVisitor<Integer>
visitExpr_case_simple
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_case_searched(HplsqlParser.Expr_case_searchedContext ctx)
visitExpr_case_searched
in interface HplsqlVisitor<Integer>
visitExpr_case_searched
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitGet_diag_stmt_exception_item(HplsqlParser.Get_diag_stmt_exception_itemContext ctx)
visitGet_diag_stmt_exception_item
in interface HplsqlVisitor<Integer>
visitGet_diag_stmt_exception_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitGet_diag_stmt_rowcount_item(HplsqlParser.Get_diag_stmt_rowcount_itemContext ctx)
visitGet_diag_stmt_rowcount_item
in interface HplsqlVisitor<Integer>
visitGet_diag_stmt_rowcount_item
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitGrant_stmt(HplsqlParser.Grant_stmtContext ctx)
visitGrant_stmt
in interface HplsqlVisitor<Integer>
visitGrant_stmt
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitLabel(HplsqlParser.LabelContext ctx)
visitLabel
in interface HplsqlVisitor<Integer>
visitLabel
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitIdent(HplsqlParser.IdentContext ctx)
visitIdent
in interface HplsqlVisitor<Integer>
visitIdent
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitSingle_quotedString(HplsqlParser.Single_quotedStringContext ctx)
visitSingle_quotedString
in interface HplsqlVisitor<Integer>
visitSingle_quotedString
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitInt_number(HplsqlParser.Int_numberContext ctx)
visitInt_number
in interface HplsqlVisitor<Integer>
visitInt_number
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitExpr_interval(HplsqlParser.Expr_intervalContext ctx)
visitExpr_interval
in interface HplsqlVisitor<Integer>
visitExpr_interval
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDec_number(HplsqlParser.Dec_numberContext ctx)
visitDec_number
in interface HplsqlVisitor<Integer>
visitDec_number
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitBool_literal(HplsqlParser.Bool_literalContext ctx)
visitBool_literal
in interface HplsqlVisitor<Integer>
visitBool_literal
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitNull_const(HplsqlParser.Null_constContext ctx)
visitNull_const
in interface HplsqlVisitor<Integer>
visitNull_const
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitDate_literal(HplsqlParser.Date_literalContext ctx)
visitDate_literal
in interface HplsqlVisitor<Integer>
visitDate_literal
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Integer visitTimestamp_literal(HplsqlParser.Timestamp_literalContext ctx)
visitTimestamp_literal
in interface HplsqlVisitor<Integer>
visitTimestamp_literal
in class HplsqlBaseVisitor<Integer>
ctx
- the parse treepublic Conn.Type getConnectionType()
public void addManagedTable(String name, String managedName)
public String getFormattedText(org.antlr.v4.runtime.ParserRuleContext ctx)
public int incRowCount()
public void setRowCount(int rowCount)
public void trace(org.antlr.v4.runtime.ParserRuleContext ctx, String message)
public void trace(org.antlr.v4.runtime.ParserRuleContext ctx, Var var, ResultSet rs, ResultSetMetaData rm, int idx) throws SQLException
SQLException
public void info(org.antlr.v4.runtime.ParserRuleContext ctx, String message)
public void error(org.antlr.v4.runtime.ParserRuleContext ctx, String message)
public int getRowCount()
public Conf getConf()
public Meta getMeta()
public boolean getTrace()
public boolean getInfo()
public boolean getOffline()
Copyright © 2021 The Apache Software Foundation. All rights reserved.