public class PhoenixUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static PhoenixUtil |
create() |
static PhoenixUtil |
create(boolean testEnabled) |
void |
deleteTables(String regexMatch)
Delete existing tables with schema name set as
PherfConstants.PHERF_SCHEMA_NAME with regex comparison |
void |
executeQuerySetDdls(QuerySet querySet)
Execute all querySet DDLs first based on tenantId if specified.
|
boolean |
executeStatement(PreparedStatement preparedStatement,
Connection connection) |
boolean |
executeStatement(String sql,
Connection connection) |
boolean |
executeStatement(String sql,
Scenario scenario) |
boolean |
executeStatementThrowException(String sql,
Connection connection)
Execute statement
|
List<Column> |
getColumnsFromPhoenix(String schemaName,
String tableName,
Connection connection) |
ResultSet |
getColumnsMetaData(String schemaName,
String tableName,
Connection connection) |
Connection |
getConnection() |
Connection |
getConnection(String tenantId) |
static int |
getRowCountOverride() |
ResultSet |
getTableMetaData(String schemaName,
String tableName,
Connection connection) |
static String |
getZookeeper() |
static void |
setRowCountOverride(int rowCountOverride) |
static void |
setZookeeper(String zookeeper) |
void |
updatePhoenixStats(String tableName,
Scenario scenario)
Update Phoenix table stats
|
public static PhoenixUtil create()
public static PhoenixUtil create(boolean testEnabled)
public Connection getConnection() throws Exception
Exceptionpublic Connection getConnection(String tenantId) throws Exception
Exceptionpublic boolean executeStatement(String sql, Scenario scenario) throws Exception
Exceptionpublic boolean executeStatementThrowException(String sql, Connection connection) throws SQLException
sql - connection - SQLExceptionpublic boolean executeStatement(String sql, Connection connection)
public boolean executeStatement(PreparedStatement preparedStatement, Connection connection)
public void deleteTables(String regexMatch) throws Exception
PherfConstants.PHERF_SCHEMA_NAME with regex comparisonregexMatch - SQLExceptionExceptionpublic ResultSet getTableMetaData(String schemaName, String tableName, Connection connection) throws SQLException
SQLExceptionpublic ResultSet getColumnsMetaData(String schemaName, String tableName, Connection connection) throws SQLException
SQLExceptionpublic List<Column> getColumnsFromPhoenix(String schemaName, String tableName, Connection connection) throws SQLException
SQLExceptionpublic void executeQuerySetDdls(QuerySet querySet) throws Exception
querySet - Exceptionpublic static String getZookeeper()
public static void setZookeeper(String zookeeper)
public static int getRowCountOverride()
public static void setRowCountOverride(int rowCountOverride)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.