private static class TestTableInputFormatBase.ConnectionForMergeTesting extends Object implements org.apache.hadoop.hbase.client.Connection
TestTableInputFormatBase.testNonSuccessiveSplitsAreNotMerged().
This class returns mocked Table, RegionLocator, RegionSizeCalculator,
and Admin.| Modifier and Type | Field and Description |
|---|---|
static byte[][] |
END_KEYS |
static Map<byte[],Long> |
SIZE_MAP |
static byte[][] |
SPLITS |
static byte[][] |
START_KEYS |
| Constructor and Description |
|---|
ConnectionForMergeTesting(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String why,
Throwable e) |
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 |
getConfiguration() |
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator |
getRegionSizeCalculator() |
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() |
public static final byte[][] SPLITS
public static final byte[][] START_KEYS
public static final byte[][] END_KEYS
ConnectionForMergeTesting(org.apache.hadoop.conf.Configuration conf, ExecutorService pool, org.apache.hadoop.hbase.security.User user) throws IOException
IOExceptionpublic void abort(String why, Throwable e)
abort in interface org.apache.hadoop.hbase.Abortablepublic boolean isAborted()
isAborted in interface org.apache.hadoop.hbase.Abortablepublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface org.apache.hadoop.hbase.client.Connectionpublic org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
getTable in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic 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.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getBufferedMutator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) throws IOException
getBufferedMutator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getRegionLocator in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator getRegionSizeCalculator()
public org.apache.hadoop.hbase.client.Admin getAdmin() throws IOException
getAdmin in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.hadoop.hbase.client.ConnectionIOExceptionpublic boolean isClosed()
isClosed in interface org.apache.hadoop.hbase.client.Connectionpublic org.apache.hadoop.hbase.client.TableBuilder getTableBuilder(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool)
getTableBuilder in interface org.apache.hadoop.hbase.client.ConnectionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.