private static class TestHFileOutputFormat2.ConfigurationCaptorConnection extends Object implements org.apache.hadoop.hbase.client.Connection
Modifier and Type | Field and Description |
---|---|
private static Map<UUID,List<org.apache.hadoop.conf.Configuration>> |
confs |
private org.apache.hadoop.hbase.client.Connection |
delegate |
private static String |
UUID_KEY |
Constructor and Description |
---|
ConfigurationCaptorConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService es,
org.apache.hadoop.hbase.security.User user) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e) |
void |
clearRegionLocationCache() |
void |
close() |
(package private) static UUID |
configureConnectionImpl(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.client.Admin |
getAdmin() |
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) |
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) |
(package private) static List<org.apache.hadoop.conf.Configuration> |
getCapturedConfigarutions(UUID key) |
String |
getClusterId() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.hbase.client.Hbck |
getHbck() |
org.apache.hadoop.hbase.client.Hbck |
getHbck(org.apache.hadoop.hbase.ServerName masterServer) |
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool) |
org.apache.hadoop.hbase.client.TableBuilder |
getTableBuilder(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool) |
boolean |
isAborted() |
boolean |
isClosed() |
private static final String UUID_KEY
private final org.apache.hadoop.hbase.client.Connection delegate
public ConfigurationCaptorConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService es, org.apache.hadoop.hbase.security.User user) throws IOException
IOException
static UUID configureConnectionImpl(org.apache.hadoop.conf.Configuration conf)
static List<org.apache.hadoop.conf.Configuration> getCapturedConfigarutions(UUID key)
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.client.Connection
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
getTable
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) throws IOException
getTable
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getBufferedMutator
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) throws IOException
getBufferedMutator
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getRegionLocator
in interface org.apache.hadoop.hbase.client.Connection
IOException
public void clearRegionLocationCache()
clearRegionLocationCache
in interface org.apache.hadoop.hbase.client.Connection
public org.apache.hadoop.hbase.client.Admin getAdmin() throws IOException
getAdmin
in interface org.apache.hadoop.hbase.client.Connection
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.hadoop.hbase.client.Connection
IOException
public boolean isClosed()
isClosed
in interface org.apache.hadoop.hbase.client.Connection
public org.apache.hadoop.hbase.client.TableBuilder getTableBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool)
getTableBuilder
in interface org.apache.hadoop.hbase.client.Connection
public org.apache.hadoop.hbase.client.Hbck getHbck() throws IOException
getHbck
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.Hbck getHbck(org.apache.hadoop.hbase.ServerName masterServer) throws IOException
getHbck
in interface org.apache.hadoop.hbase.client.Connection
IOException
public void abort(String why, Throwable e)
abort
in interface org.apache.hadoop.hbase.Abortable
public boolean isAborted()
isAborted
in interface org.apache.hadoop.hbase.Abortable
public String getClusterId()
getClusterId
in interface org.apache.hadoop.hbase.client.Connection
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.