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 |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
| Constructor and Description |
|---|
TestTableScan() |
| Modifier and Type | Method and Description |
|---|---|
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
public TestTableScan()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testSimpleScannerXML() throws IOException, JAXBException, XMLStreamException
public void testSimpleScannerJson() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic void testScanUsingListenerUnmarshallerXML() throws Exception
Exception - the exceptionpublic void testStreamingJSON() throws Exception
Exceptionpublic void testSimpleScannerProtobuf() throws Exception
Exceptionpublic int readProtobufStream(InputStream inputStream) throws IOException
inputStream - the input streamIOException - Signals that an I/O exception has occurred.public void testScanningUnknownColumnJson() throws IOException, JAXBException
IOExceptionJAXBExceptionpublic 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, JAXBException
IOExceptionJAXBExceptionCopyright © 2007–2019 Cloudera. All rights reserved.