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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testSimpleScannerXML() throws IOException, JAXBException
IOException
JAXBException
public void testSimpleScannerJson() throws IOException
IOException
public void testScanUsingListenerUnmarshallerXML() throws Exception
Exception
- the exceptionpublic void testStreamingJSON() throws Exception
Exception
public void testSimpleScannerProtobuf() throws Exception
Exception
private 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
IOException
public void testSimpleFilter() throws IOException, JAXBException
IOException
JAXBException
public void testQualifierAndPrefixFilters() throws IOException, JAXBException
IOException
JAXBException
public void testCompoundFilter() throws IOException, JAXBException
IOException
JAXBException
public void testCustomFilter() throws IOException, JAXBException
IOException
JAXBException
public void testNegativeCustomFilter() throws IOException, JAXBException
IOException
JAXBException
public void testReversed() throws IOException, JAXBException
IOException
JAXBException
public void testColumnWithEmptyQualifier() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.