Class InsertStatementParser.InsertInfo
java.lang.Object
com.databricks.jdbc.common.util.InsertStatementParser.InsertInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()booleanChecks if this INSERT is compatible with another INSERT for batching.
-
Constructor Details
-
InsertInfo
-
-
Method Details
-
getTableName
-
getColumns
-
getOriginalSql
-
getColumnCount
public int getColumnCount() -
isCompatibleWith
Checks if this INSERT is compatible with another INSERT for batching. Two INSERTs are compatible if they target the same table with the same columns in the same order.Compatible INSERT operations can be combined into multi-row INSERT statements for improved performance. For example, these two statements are compatible:
INSERT INTO users (id, name, email) VALUES (?, ?, ?) INSERT INTO users (id, name, email) VALUES (?, ?, ?)
These can be batched into:INSERT INTO users (id, name, email) VALUES (?, ?, ?), (?, ?, ?)
-
equals
-
hashCode
-