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
-
Constructor Summary
ConstructorDescriptionConnectionForMergeTesting
(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.mapreduce.RegionSizeCalculator
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
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
-
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:
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
-
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
-
getTable
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) throws IOException - Specified by:
getTable
in 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:
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
-
getRegionSizeCalculator
-
getAdmin
- Specified by:
getAdmin
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
-