public class HBaseConnection extends Object
| Constructor and Description |
|---|
HBaseConnection() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearConnCache() |
static void |
createHTableIfNeeded(org.apache.hadoop.hbase.client.HConnection conn,
String tableName,
String... families) |
static void |
createHTableIfNeeded(String hbaseUrl,
String tableName,
String... families) |
static void |
deleteTable(org.apache.hadoop.hbase.client.HConnection conn,
String tableName) |
static void |
deleteTable(String hbaseUrl,
String tableName) |
static org.apache.hadoop.hbase.client.HConnection |
get(String url) |
static org.apache.hadoop.conf.Configuration |
getCurrentHBaseConfiguration() |
static String |
makeQualifiedPathInHBaseCluster(String path) |
static boolean |
tableExists(org.apache.hadoop.hbase.client.HConnection conn,
String tableName) |
static boolean |
tableExists(String hbaseUrl,
String tableName) |
public static void clearConnCache()
public static org.apache.hadoop.conf.Configuration getCurrentHBaseConfiguration()
public static org.apache.hadoop.hbase.client.HConnection get(String url)
public static boolean tableExists(org.apache.hadoop.hbase.client.HConnection conn,
String tableName)
throws IOException
IOExceptionpublic static boolean tableExists(String hbaseUrl, String tableName) throws IOException
IOExceptionpublic static void createHTableIfNeeded(String hbaseUrl, String tableName, String... families) throws IOException
IOExceptionpublic static void deleteTable(String hbaseUrl, String tableName) throws IOException
IOExceptionpublic static void createHTableIfNeeded(org.apache.hadoop.hbase.client.HConnection conn,
String tableName,
String... families)
throws IOException
IOExceptionpublic static void deleteTable(org.apache.hadoop.hbase.client.HConnection conn,
String tableName)
throws IOException
IOExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.