public class TestTableScan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableScan.ClientSideCellSetModel
The Class ClientSideCellSetModel which mimics cell set model, and contains listener to perform
user defined operations on the row model.
|
static class |
TestTableScan.CustomFilter |
| Modifier and Type | Field and Description |
|---|---|
private static String |
CFA |
private static String |
CFB |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.hbase.rest.client.Client |
client |
private static String |
COLUMN_1 |
private static String |
COLUMN_2 |
private static String |
COLUMN_EMPTY |
private static org.apache.hadoop.conf.Configuration |
conf |
private static int |
expectedRows1 |
private static int |
expectedRows2 |
private static int |
expectedRows3 |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static org.apache.hadoop.hbase.TableName |
TABLE |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestTableScan() |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkRowsNotNull(org.apache.hadoop.hbase.rest.model.CellSetModel model) |
int |
readProtobufStream(InputStream inputStream)
Read protobuf stream.
|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testColumnWithEmptyQualifier() |
void |
testCompoundFilter() |
void |
testCustomFilter() |
void |
testNegativeCustomFilter() |
void |
testQualifierAndPrefixFilters() |
void |
testReversed() |
void |
testScanningUnknownColumnJson() |
void |
testScanUsingListenerUnmarshallerXML()
An example to scan using listener in unmarshaller for XML.
|
void |
testSimpleFilter() |
void |
testSimpleScannerJson() |
void |
testSimpleScannerProtobuf() |
void |
testSimpleScannerXML() |
void |
testStreamingJSON() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.TableName TABLE
private static final String CFA
private static final String CFB
private static final String COLUMN_1
private static final String COLUMN_2
private static final String COLUMN_EMPTY
private static org.apache.hadoop.hbase.rest.client.Client client
private static int expectedRows1
private static int expectedRows2
private static int expectedRows3
private static org.apache.hadoop.conf.Configuration conf
private static final HBaseTestingUtility TEST_UTIL
private static final HBaseRESTTestingUtility REST_TEST_UTIL
public TestTableScan()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testSimpleScannerXML() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testSimpleScannerJson() throws IOException
IOExceptionpublic void testScanUsingListenerUnmarshallerXML() throws Exception
Exception - the exceptionpublic void testStreamingJSON() throws Exception
Exceptionpublic void testSimpleScannerProtobuf() throws Exception
Exceptionprivate void checkRowsNotNull(org.apache.hadoop.hbase.rest.model.CellSetModel model)
public int readProtobufStream(InputStream inputStream) throws IOException
inputStream - the input streamIOException - Signals that an I/O exception has occurred.public void testScanningUnknownColumnJson() throws IOException
IOExceptionpublic void testSimpleFilter() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testQualifierAndPrefixFilters() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testCompoundFilter() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testCustomFilter() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testNegativeCustomFilter() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testReversed() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testColumnWithEmptyQualifier() throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.