Package org.apache.hadoop.hbase.thrift2
Class TestThriftConnection
java.lang.Object
org.apache.hadoop.hbase.thrift2.TestThriftConnection
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
protected static int
private static final org.slf4j.Logger
private static final long
private 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 HBaseTestingUtil
private static org.apache.hadoop.hbase.client.Admin
protected static org.apache.hadoop.hbase.client.Connection
protected static org.apache.hadoop.hbase.client.Connection
protected static org.apache.hadoop.hbase.thrift2.ThriftServer
protected static int
protected static org.apache.hadoop.hbase.thrift2.ThriftServer
private static final long
private static final long
private static final byte[]
private static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
void
testCheckAndDelete
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
void
testDelete
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
testGet()
private void
void
void
void
testHBASE22011
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
void
testIteratorScanner
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
void
testMultiGet
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
testPut()
void
void
void
testReverseScan
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
void
testScanner
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
private void
testScanWithFilters
(org.apache.hadoop.hbase.client.Connection connection, String tableName) void
private void
testThriftAdmin
(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
-