Class TestTableInputFormatBase.ConnectionForMergeTesting
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestTableInputFormatBase.ConnectionForMergeTesting
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hbase.Abortable,org.apache.hadoop.hbase.client.Connection
- Enclosing class:
- TestTableInputFormatBase
private static class TestTableInputFormatBase.ConnectionForMergeTesting
extends Object
implements org.apache.hadoop.hbase.client.Connection
Connection class to use in
TestTableInputFormatBase.testNonSuccessiveSplitsAreNotMerged(). This class returns
mocked Table, RegionLocator, RegionSizeCalculator, and Admin.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConnectionForMergeTesting(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user, Map<String, byte[]> connectionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclose()org.apache.hadoop.hbase.client.AdmingetAdmin()org.apache.hadoop.hbase.client.BufferedMutatorgetBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) org.apache.hadoop.hbase.client.BufferedMutatorgetBufferedMutator(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.conf.Configurationorg.apache.hadoop.hbase.client.RegionLocatorgetRegionLocator(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.mapreduce.RegionSizeCalculatororg.apache.hadoop.hbase.client.TablegetTable(org.apache.hadoop.hbase.TableName tableName) org.apache.hadoop.hbase.client.TablegetTable(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) org.apache.hadoop.hbase.client.TableBuildergetTableBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) booleanbooleanisClosed()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Abortable
abortMethods inherited from interface org.apache.hadoop.hbase.client.Connection
getHbck, getHbck
-
Field Details
-
SPLITS
-
START_KEYS
-
END_KEYS
-
SIZE_MAP
-
-
Constructor Details
-
ConnectionForMergeTesting
ConnectionForMergeTesting(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:
abortin interfaceorg.apache.hadoop.hbase.Abortable
-
isAborted
- Specified by:
isAbortedin interfaceorg.apache.hadoop.hbase.Abortable
-
getConfiguration
- Specified by:
getConfigurationin interfaceorg.apache.hadoop.hbase.client.Connection
-
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getTablein interfaceorg.apache.hadoop.hbase.client.Connection- Throws:
IOException
-
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) throws IOException - Specified by:
getTablein interfaceorg.apache.hadoop.hbase.client.Connection- Throws:
IOException
-
getBufferedMutator
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) throws IOException - Specified by:
getBufferedMutatorin 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:
getBufferedMutatorin 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:
getRegionLocatorin interfaceorg.apache.hadoop.hbase.client.Connection- Throws:
IOException
-
getRegionSizeCalculator
-
getAdmin
- Specified by:
getAdminin interfaceorg.apache.hadoop.hbase.client.Connection- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.hadoop.hbase.client.Connection- Throws:
IOException
-
isClosed
- Specified by:
isClosedin 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:
getTableBuilderin interfaceorg.apache.hadoop.hbase.client.Connection
-
clearRegionLocationCache
- Specified by:
clearRegionLocationCachein interfaceorg.apache.hadoop.hbase.client.Connection
-
getClusterId
- Specified by:
getClusterIdin interfaceorg.apache.hadoop.hbase.client.Connection
-