Class HiveInsert
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLInsertInto
-
- com.alibaba.druid.sql.dialect.hive.ast.HiveInsert
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement
public class HiveInsert extends SQLInsertInto
-
-
Field Summary
-
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
columns, columnsString, columnsStringHash, insertBeforeComments, overwrite, partitions, query, tableSource, valuesList
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description HiveInsert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(HiveASTVisitor visitor)protected voidaccept0(SQLASTVisitor visitor)voidaddValueCause(SQLInsertStatement.ValuesClause valueClause)SQLInsertIntoclone()SQLSelectgetQuery()SQLExprTableSourcegetTableSource()List<SQLInsertStatement.ValuesClause>getValuesList()voidsetPartitions(List<SQLAssignItem> partitions)voidsetQuery(SQLSelect query)voidsetTableSource(SQLName tableName)voidsetTableSource(SQLExprTableSource tableSource)-
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
addColumn, addInsertBeforeComment, addPartition, cloneTo, getAlias, getColumns, getColumnsString, getColumnsStringHash, getHint, getInsertBeforeCommentsDirect, getPartitions, getTableName, getValues, isOverwrite, replace, setAlias, setColumnsString, setHint, setOverwrite, setQuery, setTableName, setValues
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
cloneTo, getChildren, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedString
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Method Detail
-
setPartitions
public void setPartitions(List<SQLAssignItem> partitions)
-
clone
public SQLInsertInto clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Specified by:
clonein classSQLInsertInto
-
getTableSource
public SQLExprTableSource getTableSource()
- Overrides:
getTableSourcein classSQLInsertInto
-
setTableSource
public void setTableSource(SQLExprTableSource tableSource)
- Overrides:
setTableSourcein classSQLInsertInto
-
setTableSource
public void setTableSource(SQLName tableName)
- Overrides:
setTableSourcein classSQLInsertInto
-
getQuery
public SQLSelect getQuery()
- Overrides:
getQueryin classSQLInsertInto
-
setQuery
public void setQuery(SQLSelect query)
- Overrides:
setQueryin classSQLInsertInto
-
getValuesList
public List<SQLInsertStatement.ValuesClause> getValuesList()
- Overrides:
getValuesListin classSQLInsertInto
-
addValueCause
public void addValueCause(SQLInsertStatement.ValuesClause valueClause)
- Overrides:
addValueCausein classSQLInsertInto
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
accept0
protected void accept0(HiveASTVisitor visitor)
-
-