Package org.apache.hadoop.hbase.thrift2
Class TestThriftConnection
java.lang.Object
org.apache.hadoop.hbase.thrift2.TestThriftConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]protected static intprivate static final org.slf4j.Loggerprivate static final longprivate static final byte[]private static final byte[]private static final byte[]private static final byte[]private static final byte[]private static final byte[]protected static final HBaseTestingUtilityprivate static org.apache.hadoop.hbase.client.Adminprotected static org.apache.hadoop.hbase.client.Connectionprotected static org.apache.hadoop.hbase.client.Connectionprotected static org.apache.hadoop.hbase.thrift2.ThriftServerprotected static intprotected static org.apache.hadoop.hbase.thrift2.ThriftServerprivate static final longprivate static final longprivate static final byte[]private static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.client.ConnectioncreateConnection(int port, boolean useHttp) private org.apache.hadoop.hbase.client.TableDescriptorcreateTable(org.apache.hadoop.hbase.client.Admin admin, String tableName) static voidsetUp()static voidshutdown()private static org.apache.hadoop.hbase.thrift2.ThriftServerstartThriftServer(int port, boolean useHttp) voidvoidtestCheckAndDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidvoidtestDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidtestGet()private voidvoidvoidvoidtestHBASE22011(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidvoidtestIteratorScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidvoidtestMultiGet(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidtestPut()voidvoidvoidtestReverseScan(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidvoidtestScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidprivate voidtestScanWithFilters(org.apache.hadoop.hbase.client.Connection connection, String tableName) voidprivate voidtestThriftAdmin(org.apache.hadoop.hbase.client.Connection connection, String namespace, String table)
-
Field Details
-
LOG
-
CLASS_RULE
-
FAMILYA
-
FAMILYB
-
FAMILYC
-
FAMILYD
-
ROW_1
-
ROW_2
-
ROW_3
-
ROW_4
-
QUALIFIER_1
-
QUALIFIER_2
-
VALUE_1
-
VALUE_2
-
ONE_HOUR
- See Also:
-
TS_2
-
TS_1
-
TEST_UTIL
-
thriftServer
-
thriftHttpServer
-
thriftPort
-
httpPort
-
thriftConnection
-
thriftHttpConnection
-
thriftAdmin
-
-
Constructor Details
-
TestThriftConnection
public TestThriftConnection()
-
-
Method Details
-
startThriftServer
private static org.apache.hadoop.hbase.thrift2.ThriftServer startThriftServer(int port, boolean useHttp) -
createConnection
private static org.apache.hadoop.hbase.client.Connection createConnection(int port, boolean useHttp) throws IOException - Throws:
IOException
-
setUp
- Throws:
Exception
-
shutdown
- Throws:
Exception
-
testGetClusterId
-
testThriftAdmin
- Throws:
Exception
-
testGet
- Throws:
Exception
-
testGet
private void testGet(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testHBASE22011
- Throws:
Exception
-
testHBASE22011
public void testHBASE22011(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testMultiGet
- Throws:
Exception
-
testMultiGet
public void testMultiGet(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws Exception - Throws:
Exception
-
testPut
- Throws:
Exception
-
testPut
public void testPut(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testDelete
- Throws:
Exception
-
testDelete
public void testDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testScanner
- Throws:
Exception
-
testScanner
public void testScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testCheckAndDelete
- Throws:
Exception
-
testCheckAndDelete
public void testCheckAndDelete(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testIteratorScaner
- Throws:
Exception
-
testIteratorScanner
public void testIteratorScanner(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testReverseScan
- Throws:
Exception
-
testReverseScan
public void testReverseScan(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
testScanWithFilters
- Throws:
Exception
-
testScanWithFilters
private void testScanWithFilters(org.apache.hadoop.hbase.client.Connection connection, String tableName) throws IOException - Throws:
IOException
-
createTable
private org.apache.hadoop.hbase.client.TableDescriptor createTable(org.apache.hadoop.hbase.client.Admin admin, String tableName) throws IOException - Throws:
IOException
-
testThriftAdmin
private void testThriftAdmin(org.apache.hadoop.hbase.client.Connection connection, String namespace, String table) throws Exception - Throws:
Exception
-