Class TestMultiTableInputFormatBase.MRSplitsConnection
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestMultiTableInputFormatBase.MRSplitsConnection
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.Abortable
,org.apache.hadoop.hbase.client.Connection
- Enclosing class:
- TestMultiTableInputFormatBase
public static class TestMultiTableInputFormatBase.MRSplitsConnection
extends Object
implements org.apache.hadoop.hbase.client.Connection
Connection to use above in Test.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.conf.Configuration
(package private) static final AtomicInteger
-
Constructor Summary
ConstructorDescriptionMRSplitsConnection
(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user, Map<String, byte[]> connectionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
close()
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) org.apache.hadoop.conf.Configuration
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.TableBuilder
getTableBuilder
(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) boolean
boolean
isClosed()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.Abortable
abort
Methods inherited from interface org.apache.hadoop.hbase.client.Connection
getHbck, getHbck, getTable
-
Field Details
-
configuration
-
creations
-
-
Constructor Details
-
MRSplitsConnection
MRSplitsConnection(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user, Map<String, byte[]> connectionAttributes) throws IOException- Throws:
IOException
-
-
Method Details
-
abort
- Specified by:
abort
in interfaceorg.apache.hadoop.hbase.Abortable
-
isAborted
- Specified by:
isAborted
in interfaceorg.apache.hadoop.hbase.Abortable
-
getConfiguration
- Specified by:
getConfiguration
in interfaceorg.apache.hadoop.hbase.client.Connection
-
getBufferedMutator
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getBufferedMutator
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
getBufferedMutator
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) throws IOException - Specified by:
getBufferedMutator
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
getRegionLocator
public org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getRegionLocator
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
getAdmin
- Specified by:
getAdmin
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getTable
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.hadoop.hbase.client.Connection
- Throws:
IOException
-
isClosed
- Specified by:
isClosed
in interfaceorg.apache.hadoop.hbase.client.Connection
-
getTableBuilder
public org.apache.hadoop.hbase.client.TableBuilder getTableBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) - Specified by:
getTableBuilder
in interfaceorg.apache.hadoop.hbase.client.Connection
-
clearRegionLocationCache
- Specified by:
clearRegionLocationCache
in interfaceorg.apache.hadoop.hbase.client.Connection
-
getClusterId
- Specified by:
getClusterId
in interfaceorg.apache.hadoop.hbase.client.Connection
-