public class PhoenixUtil extends Object
| Constructor and Description |
|---|
PhoenixUtil() |
PhoenixUtil(boolean testEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTables(String regexMatch)
Delete existing tables with schema name set as
PherfConstants.PHERF_SCHEMA_NAME with regex comparison |
ResultSet |
executeQuery(PreparedStatement preparedStatement,
Connection connection) |
boolean |
executeStatement(PreparedStatement preparedStatement,
Connection connection) |
boolean |
executeStatement(String sql) |
boolean |
executeStatement(String sql,
Connection connection) |
List<Column> |
getColumnsFromPhoenix(String schemaName,
String tableName,
Connection connection) |
ResultSet |
getColumnsMetaData(String schemaName,
String tableName,
Connection connection) |
Connection |
getConnection() |
Connection |
getConnection(String tenantId) |
Connection |
getConnection(String tenantId,
boolean testEnabled) |
static int |
getRowCountOverride() |
ResultSet |
getTableMetaData(String schemaName,
String tableName,
Connection connection) |
static String |
getZookeeper() |
static void |
setRowCountOverride(int rowCountOverride) |
static void |
setZookeeper(String zookeeper) |
public PhoenixUtil()
public PhoenixUtil(boolean testEnabled)
public Connection getConnection() throws Exception
Exceptionpublic Connection getConnection(String tenantId) throws Exception
Exceptionpublic Connection getConnection(String tenantId, boolean testEnabled) throws Exception
Exceptionpublic boolean executeStatement(String sql, Connection connection)
public boolean executeStatement(PreparedStatement preparedStatement, Connection connection)
public ResultSet executeQuery(PreparedStatement preparedStatement, Connection connection)
public void deleteTables(String regexMatch) throws SQLException, 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 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.