public class TestScannerResource extends Object
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 org.apache.hadoop.conf.Configuration |
conf |
private static JAXBContext |
context |
private static int |
expectedRows1 |
private static int |
expectedRows2 |
private static org.slf4j.Logger |
LOG |
private static Marshaller |
marshaller |
private static String |
NONEXISTENT_TABLE |
private static HBaseRESTTestingUtility |
REST_TEST_UTIL |
private static org.apache.hadoop.hbase.TableName |
TABLE |
private static org.apache.hadoop.hbase.TableName |
TABLE_TO_BE_DISABLED |
private static HBaseTestingUtility |
TEST_UTIL |
private static Unmarshaller |
unmarshaller |
Constructor and Description |
---|
TestScannerResource() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
countCellSet(org.apache.hadoop.hbase.rest.model.CellSetModel model) |
private static int |
fullTableScan(org.apache.hadoop.hbase.rest.model.ScannerModel model) |
(package private) static int |
insertData(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
String column,
double prob) |
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testFullTableScan() |
void |
testSimpleScannerBinary() |
void |
testSimpleScannerPB() |
void |
testSimpleScannerXML() |
void |
testTableDoesNotExist() |
void |
testTableScanWithTableDisable() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final org.apache.hadoop.hbase.TableName TABLE
private static final org.apache.hadoop.hbase.TableName TABLE_TO_BE_DISABLED
private static final String NONEXISTENT_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 HBaseTestingUtility TEST_UTIL
private static final HBaseRESTTestingUtility REST_TEST_UTIL
private static org.apache.hadoop.hbase.rest.client.Client client
private static JAXBContext context
private static Marshaller marshaller
private static Unmarshaller unmarshaller
private static int expectedRows1
private static int expectedRows2
private static org.apache.hadoop.conf.Configuration conf
public TestScannerResource()
static int insertData(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String column, double prob) throws IOException
IOException
static int countCellSet(org.apache.hadoop.hbase.rest.model.CellSetModel model)
private static int fullTableScan(org.apache.hadoop.hbase.rest.model.ScannerModel model) throws IOException
IOException
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testSimpleScannerXML() throws IOException, JAXBException
IOException
JAXBException
public void testSimpleScannerPB() throws IOException
IOException
public void testSimpleScannerBinary() throws IOException
IOException
public void testFullTableScan() throws IOException
IOException
public void testTableDoesNotExist() throws IOException, JAXBException
IOException
JAXBException
public void testTableScanWithTableDisable() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.