public class TestThriftConnection extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
FAMILYA |
private static byte[] |
FAMILYB |
private static byte[] |
FAMILYC |
private static byte[] |
FAMILYD |
protected static int |
httpPort |
private static org.slf4j.Logger |
LOG |
private static long |
ONE_HOUR |
private static byte[] |
QUALIFIER_1 |
private static byte[] |
QUALIFIER_2 |
private static byte[] |
ROW_1 |
private static byte[] |
ROW_2 |
private static byte[] |
ROW_3 |
private static byte[] |
ROW_4 |
protected static HBaseTestingUtility |
TEST_UTIL |
private static org.apache.hadoop.hbase.client.Admin |
thriftAdmin |
protected static org.apache.hadoop.hbase.client.Connection |
thriftConnection |
protected static org.apache.hadoop.hbase.client.Connection |
thriftHttpConnection |
protected static org.apache.hadoop.hbase.thrift2.ThriftServer |
thriftHttpServer |
protected static int |
thriftPort |
protected static org.apache.hadoop.hbase.thrift2.ThriftServer |
thriftServer |
private static long |
TS_1 |
private static long |
TS_2 |
private static byte[] |
VALUE_1 |
private static byte[] |
VALUE_2 |
Constructor and Description |
---|
TestThriftConnection() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.client.Connection |
createConnection(int port,
boolean useHttp) |
private org.apache.hadoop.hbase.client.TableDescriptor |
createTable(org.apache.hadoop.hbase.client.Admin admin,
String tableName) |
static void |
setUp() |
static void |
shutdown() |
private static org.apache.hadoop.hbase.thrift2.ThriftServer |
startThriftServer(int port,
boolean useHttp) |
void |
testCheckAndDelete() |
void |
testCheckAndDelete(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testDelete() |
void |
testDelete(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testGet() |
void |
testGet(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testHBASE22011() |
void |
testHBASE22011(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testIteratorScaner() |
void |
testIteratorScanner(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testMultiGet() |
void |
testMultiGet(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testPut() |
void |
testPut(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testReverseScan() |
void |
testReverseScan(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testScanner() |
void |
testScanner(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testScanWithFilters() |
private void |
testScanWithFilters(org.apache.hadoop.hbase.client.Connection connection,
String tableName) |
void |
testThrfitAdmin() |
private void |
testThriftAdmin(org.apache.hadoop.hbase.client.Connection connection,
String namespace,
String table) |
private static final org.slf4j.Logger LOG
public static final HBaseClassTestRule CLASS_RULE
private static final byte[] FAMILYA
private static final byte[] FAMILYB
private static final byte[] FAMILYC
private static final byte[] FAMILYD
private static final byte[] ROW_1
private static final byte[] ROW_2
private static final byte[] ROW_3
private static final byte[] ROW_4
private static final byte[] QUALIFIER_1
private static final byte[] QUALIFIER_2
private static final byte[] VALUE_1
private static final byte[] VALUE_2
private static final long ONE_HOUR
private static final long TS_2
private static final long TS_1
protected static final HBaseTestingUtility TEST_UTIL
protected static org.apache.hadoop.hbase.thrift2.ThriftServer thriftServer
protected static org.apache.hadoop.hbase.thrift2.ThriftServer thriftHttpServer
protected static int thriftPort
protected static int httpPort
protected static org.apache.hadoop.hbase.client.Connection thriftConnection
protected static org.apache.hadoop.hbase.client.Connection thriftHttpConnection
private static org.apache.hadoop.hbase.client.Admin thriftAdmin
public TestThriftConnection()
private static org.apache.hadoop.hbase.thrift2.ThriftServer startThriftServer(int port, boolean useHttp)
private static org.apache.hadoop.hbase.client.Connection createConnection(int port, boolean useHttp) throws IOException
IOException
public void testThrfitAdmin() throws Exception
Exception
public void testGet(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testHBASE22011() throws Exception
Exception
public void testHBASE22011(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testMultiGet() throws Exception
Exception
public void testMultiGet(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws Exception
Exception
public void testPut(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testDelete() throws Exception
Exception
public void testDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testScanner() throws Exception
Exception
public void testScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testCheckAndDelete() throws Exception
Exception
public void testCheckAndDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testIteratorScaner() throws Exception
Exception
public void testIteratorScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testReverseScan() throws Exception
Exception
public void testReverseScan(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
public void testScanWithFilters() throws Exception
Exception
private void testScanWithFilters(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException
IOException
private org.apache.hadoop.hbase.client.TableDescriptor createTable(org.apache.hadoop.hbase.client.Admin admin, String tableName) throws IOException
IOException
private void testThriftAdmin(org.apache.hadoop.hbase.client.Connection connection, String namespace, String table) throws Exception
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.