Package org.apache.hadoop.hbase.rest
Class TestTableScan
java.lang.Object
org.apache.hadoop.hbase.rest.TestTableScan
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Class ClientSideCellSetModel which mimics cell set model, and contains listener to perform user defined operations on the row model.static class - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Base64.Encoderprivate static final Stringprivate static final Stringstatic final HBaseClassTestRuleprivate static org.apache.hadoop.hbase.rest.client.Clientprivate static final Stringprivate static final Stringprivate static final Stringprivate static org.apache.hadoop.conf.Configurationprivate static intprivate static intprivate static intprivate static final HBaseRESTTestingUtilityprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckRowsNotNull(org.apache.hadoop.hbase.rest.model.CellSetModel model) intreadProtobufStream(InputStream inputStream) Read protobuf stream.static voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidAn example to scan using listener in unmarshaller for XML.voidvoidvoidvoidvoidvoid 
- 
Field Details
- 
CLASS_RULE
 - 
TABLE
 - 
CFA
- See Also:
 
 - 
CFB
- See Also:
 
 - 
COLUMN_1
- See Also:
 
 - 
COLUMN_2
- See Also:
 
 - 
COLUMN_EMPTY
- See Also:
 
 - 
client
 - 
expectedRows1
 - 
expectedRows2
 - 
expectedRows3
 - 
conf
 - 
base64UrlEncoder
 - 
TEST_UTIL
 - 
REST_TEST_UTIL
 
 - 
 - 
Constructor Details
- 
TestTableScan
public TestTableScan() 
 - 
 - 
Method Details
- 
setUpBeforeClass
- Throws:
 Exception
 - 
tearDownAfterClass
- Throws:
 Exception
 - 
testSimpleScannerXML
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testSimpleScannerJson
- Throws:
 IOException
 - 
testScanUsingListenerUnmarshallerXML
An example to scan using listener in unmarshaller for XML.- Throws:
 Exception- the exception
 - 
testStreamingJSON
- Throws:
 Exception
 - 
testSimpleScannerProtobuf
- Throws:
 Exception
 - 
checkRowsNotNull
 - 
readProtobufStream
Read protobuf stream.- Parameters:
 inputStream- the input stream- Returns:
 - The number of rows in the cell set model.
 - Throws:
 IOException- Signals that an I/O exception has occurred.
 - 
testScanningUnknownColumnJson
- Throws:
 IOException
 - 
testSimpleFilter
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testSimpleFilterBase64
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testQualifierAndPrefixFilters
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testCompoundFilter
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testCustomFilter
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testNegativeCustomFilter
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testReversed
- Throws:
 IOExceptionjavax.xml.bind.JAXBException
 - 
testColumnWithEmptyQualifier
- Throws:
 IOException
 
 -