public class PhoenixUtil
extends java.lang.Object
| Constructor and Description |
|---|
PhoenixUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
alterTableForWalDisable(java.sql.Connection conn,
java.lang.String tableName,
boolean disableMode) |
static void |
closeResource(java.sql.Connection conn) |
static void |
closeResource(java.sql.Statement stmt) |
static java.lang.String |
constructDeleteStatement(java.sql.Connection conn,
java.lang.String tableName) |
static void |
createTable(java.sql.Connection conn,
java.lang.String createTableStatement) |
static void |
dropTable(java.sql.Connection conn,
java.lang.String tableName) |
static boolean |
existTable(java.sql.Connection conn,
java.lang.String tableName) |
static void |
flush(java.sql.Connection conn,
java.lang.String tableName) |
static java.util.List<org.apache.phoenix.util.ColumnInfo> |
getColumnInfoList(java.sql.Connection conn,
java.lang.String tableName) |
static java.lang.String |
getPhoenixType(java.lang.String hiveTypeName) |
static java.util.List<java.lang.String> |
getPrimaryKeyColumnList(org.apache.hadoop.conf.Configuration config,
java.lang.String tableName) |
static java.util.List<java.lang.String> |
getPrimaryKeyColumnList(java.sql.Connection conn,
java.lang.String tableName) |
static java.lang.String[] |
getTableSchema(java.lang.String tableName) |
static boolean |
isDisabledWal(org.apache.phoenix.schema.MetaDataClient metaDataClient,
java.lang.String tableName) |
public static java.lang.String getPhoenixType(java.lang.String hiveTypeName)
public static boolean existTable(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.util.List<java.lang.String> getPrimaryKeyColumnList(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.util.List<java.lang.String> getPrimaryKeyColumnList(org.apache.hadoop.conf.Configuration config,
java.lang.String tableName)
public static void createTable(java.sql.Connection conn,
java.lang.String createTableStatement)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void dropTable(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.util.List<org.apache.phoenix.util.ColumnInfo> getColumnInfoList(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String[] getTableSchema(java.lang.String tableName)
public static boolean isDisabledWal(org.apache.phoenix.schema.MetaDataClient metaDataClient,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void alterTableForWalDisable(java.sql.Connection conn,
java.lang.String tableName,
boolean disableMode)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void flush(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String constructDeleteStatement(java.sql.Connection conn,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void closeResource(java.sql.Statement stmt)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void closeResource(java.sql.Connection conn)
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2021 Apache Software Foundation. All rights reserved.