public class ConverterUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateActualBatchSize(int numberOfCols,
Connection destination,
String catalog,
String schema,
String table) |
static int |
getEstimatedRowSizeInCloudSpanner(Connection connection,
String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern) |
static int |
getNumberOfIndices(Connection destination,
String catalog,
String schema,
String table) |
static List<String> |
getQuotedColumnNames(Connection destination,
String catalog,
String schema,
String table) |
static int |
getRowSize(Connection destination,
String catalog,
String schema,
String table) |
public static int calculateActualBatchSize(int numberOfCols,
Connection destination,
String catalog,
String schema,
String table)
throws SQLException
SQLExceptionpublic static int getRowSize(Connection destination, String catalog, String schema, String table) throws SQLException
SQLExceptionpublic static int getNumberOfIndices(Connection destination, String catalog, String schema, String table) throws SQLException
SQLExceptionpublic static List<String> getQuotedColumnNames(Connection destination, String catalog, String schema, String table) throws SQLException
SQLExceptionpublic static int getEstimatedRowSizeInCloudSpanner(Connection connection, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
connection - The connection to use to estimate the row sizecatalog - The catalog of the tableschemaPattern - The schema of the tabletableNamePattern - The name of the tablecolumnNamePattern - The name of the column(s) to checkSQLException - If a database error occurs while getting the table meta dataCopyright © 2018. All rights reserved.