程序包 com.databend.jdbc.parser

# 类 BatchInsertUtils

java.lang.Object
com.databend.jdbc.parser.BatchInsertUtils

public class BatchInsertUtils extends Object

## 方法概要

修饰符和类型
方法
说明
`void`
`clean()`
`String`
`getDatabaseTableName()`
`Map<Integer,String>`
`getProvideParams()`
`String`
`getSql()`
`String[]`
`getValues()`
`File`
`saveBatchToCSV(List<String[]> values)`
`File`
`saveBatchToCSV(List<String[]> values, File file)`
`void`
`setPlaceHolderValue(int index, String value)`
`static Optional<BatchInsertUtils>`
`tryParseInsertSql(String sql)`
Parse the sql to get insert AST

### 从类继承的方法 java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## 方法详细资料

### tryParseInsertSql

public static Optional<BatchInsertUtils> tryParseInsertSql(String sql)
Parse the sql to get insert AST

参数:
  `sql` - candidate sql
返回:
  BatchInertUtils if the sql is a batch insert sql

### getSql

public String getSql()

### getProvideParams

public Map<Integer,String> getProvideParams()

### getDatabaseTableName

public String getDatabaseTableName()

### setPlaceHolderValue

public void setPlaceHolderValue(int index, String value) throws IllegalArgumentException

抛出:
  `IllegalArgumentException`

### getValues

public String[] getValues()

### saveBatchToCSV

public File saveBatchToCSV(List<String[]> values)

### saveBatchToCSV

public File saveBatchToCSV(List<String[]> values, File file)

### clean

public void clean()