Package org.apache.hadoop.hbase.rest
Class RowResourceBase
java.lang.Object
org.apache.hadoop.hbase.rest.RowResourceBase
- Direct Known Subclasses:
TestDeleteRow
,TestGetAndPutResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected static final String
protected static org.apache.hadoop.hbase.rest.client.Client
protected static final String
protected static final String
protected static final String
protected static org.apache.hadoop.conf.Configuration
protected static javax.xml.bind.JAXBContext
protected static com.fasterxml.jackson.databind.ObjectMapper
protected static final HBaseRESTTestingUtility
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final org.apache.hadoop.hbase.TableName
protected static final HBaseTestingUtil
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static javax.xml.bind.Marshaller
protected static javax.xml.bind.Unmarshaller
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected static org.apache.hadoop.hbase.rest.client.Response
appendValueJson
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
appendValuePB
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
appendValueXML
(String table, String row, String column, String value) void
protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteJson
(String table, String row, String column, String valueToCheck) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteJson
(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteJson
(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeletePB
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeletePB
(String table, String row, String column, String value, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteValuePB
(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteXML
(String table, String row, String column, String valueToCheck) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteXML
(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndDeleteXML
(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Response
protected static org.apache.hadoop.hbase.rest.client.Response
checkAndPutValuePB
(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndPutValuePB
(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndPutValueXML
(String table, String row, String column, String valueToCheck, String valueToPut) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndPutValueXML
(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.Response
checkAndPutValueXML
(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static void
checkIncrementValueJSON
(String table, String row, String column, long value) protected static void
checkIncrementValuePB
(String table, String row, String column, long value) protected static void
checkIncrementValueXML
(String table, String row, String column, long value) protected static void
checkValueJSON
(String table, String row, String column, String value) protected static void
checkValuePB
(String table, String row, String column, String value) protected static void
checkValueXML
(String table, String row, String column, String value) protected static void
protected static org.apache.hadoop.hbase.rest.client.Response
protected static org.apache.hadoop.hbase.rest.client.Response
deleteRowB64
(String table, String row, boolean useQueryString) protected static org.apache.hadoop.hbase.rest.client.Response
deleteValue
(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.Response
deleteValueB64
(String table, String row, String column, boolean useQueryString) protected static org.apache.hadoop.hbase.rest.client.Response
getValueJson
(String url) protected static org.apache.hadoop.hbase.rest.client.Response
getValueJson
(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.Response
getValuePB
(String url) protected static org.apache.hadoop.hbase.rest.client.Response
getValuePB
(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.Response
getValueXML
(String url) protected static org.apache.hadoop.hbase.rest.client.Response
getValueXML
(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.Response
getValueXML
(String table, String startRow, String endRow, String column) protected static org.apache.hadoop.hbase.rest.client.Response
getValueXML
(String url, org.apache.http.Header[] headers) protected static org.apache.hadoop.hbase.rest.client.Response
incrementValueJson
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
incrementValuePB
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
incrementValueXML
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
putValueJson
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
(package private) static org.apache.hadoop.hbase.rest.client.Response
putValuePB
(String table, String row, String column, String value) (package private) static org.apache.hadoop.hbase.rest.client.Response
protected static org.apache.hadoop.hbase.rest.client.Response
putValueXML
(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Response
static void
static void
-
Field Details
-
TABLE
- See Also:
-
TABLE_NAME
-
CFA
- See Also:
-
CFB
- See Also:
-
COLUMN_1
- See Also:
-
COLUMN_2
- See Also:
-
COLUMN_3
- See Also:
-
ROW_1
- See Also:
-
VALUE_1
- See Also:
-
ROW_2
- See Also:
-
VALUE_2
- See Also:
-
ROW_3
- See Also:
-
VALUE_3
- See Also:
-
ROW_4
- See Also:
-
VALUE_4
- See Also:
-
VALUE_5
- See Also:
-
VALUE_6
- See Also:
-
TEST_UTIL
-
REST_TEST_UTIL
-
client
-
context
-
xmlMarshaller
-
xmlUnmarshaller
-
conf
-
jsonMapper
-
-
Constructor Details
-
RowResourceBase
public RowResourceBase()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
beforeMethod
- Throws:
Exception
-
afterMethod
- Throws:
Exception
-
putValuePB
static org.apache.hadoop.hbase.rest.client.Response putValuePB(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
putValuePB
static org.apache.hadoop.hbase.rest.client.Response putValuePB(String url, String table, String row, String column, String value) throws IOException - Throws:
IOException
-
checkValueXML
protected static void checkValueXML(String url, String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
checkValueXML
protected static void checkValueXML(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
checkIncrementValueXML
protected static void checkIncrementValueXML(String table, String row, String column, long value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
getValuePB
protected static org.apache.hadoop.hbase.rest.client.Response getValuePB(String url) throws IOException - Throws:
IOException
-
putValueXML
protected static org.apache.hadoop.hbase.rest.client.Response putValueXML(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
putValueXML
protected static org.apache.hadoop.hbase.rest.client.Response putValueXML(String url, String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
getValuePB
protected static org.apache.hadoop.hbase.rest.client.Response getValuePB(String table, String row, String column) throws IOException - Throws:
IOException
-
checkValuePB
protected static void checkValuePB(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
checkIncrementValuePB
protected static void checkIncrementValuePB(String table, String row, String column, long value) throws IOException - Throws:
IOException
-
checkAndPutValuePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValuePB(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) throws IOException- Throws:
IOException
-
checkAndPutValuePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValuePB(String table, String row, String column, String valueToCheck, String valueToPut) throws IOException - Throws:
IOException
-
checkAndPutValuePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValuePB(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) throws IOException- Throws:
IOException
-
checkAndPutValueXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValueXML(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndPutValueXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValueXML(String table, String row, String column, String valueToCheck, String valueToPut) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndPutValueXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValueXML(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndDeleteXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteXML(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndDeleteXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteXML(String table, String row, String column, String valueToCheck) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndDeleteXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteXML(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) throws IOException, javax.xml.bind.JAXBException- Throws:
IOException
javax.xml.bind.JAXBException
-
checkAndDeleteJson
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteJson(String table, String row, String column, String valueToCheck) throws IOException - Throws:
IOException
-
checkAndDeleteJson
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteJson(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) throws IOException- Throws:
IOException
-
checkAndDeleteJson
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteJson(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) throws IOException- Throws:
IOException
-
checkAndDeletePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeletePB(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
checkAndDeletePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeletePB(String table, String row, String column, String value, HashMap<String, String> cellsToDelete) throws IOException- Throws:
IOException
-
checkAndDeleteValuePB
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteValuePB(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) throws IOException- Throws:
IOException
-
getValueXML
protected static org.apache.hadoop.hbase.rest.client.Response getValueXML(String table, String startRow, String endRow, String column) throws IOException - Throws:
IOException
-
getValueXML
protected static org.apache.hadoop.hbase.rest.client.Response getValueXML(String url) throws IOException - Throws:
IOException
-
getValueXML
protected static org.apache.hadoop.hbase.rest.client.Response getValueXML(String url, org.apache.http.Header[] headers) throws IOException - Throws:
IOException
-
getValueJson
protected static org.apache.hadoop.hbase.rest.client.Response getValueJson(String url) throws IOException - Throws:
IOException
-
deleteValue
protected static org.apache.hadoop.hbase.rest.client.Response deleteValue(String table, String row, String column) throws IOException - Throws:
IOException
-
deleteValueB64
protected static org.apache.hadoop.hbase.rest.client.Response deleteValueB64(String table, String row, String column, boolean useQueryString) throws IOException - Throws:
IOException
-
getValueXML
protected static org.apache.hadoop.hbase.rest.client.Response getValueXML(String table, String row, String column) throws IOException - Throws:
IOException
-
deleteRow
protected static org.apache.hadoop.hbase.rest.client.Response deleteRow(String table, String row) throws IOException - Throws:
IOException
-
deleteRowB64
protected static org.apache.hadoop.hbase.rest.client.Response deleteRowB64(String table, String row, boolean useQueryString) throws IOException - Throws:
IOException
-
getValueJson
protected static org.apache.hadoop.hbase.rest.client.Response getValueJson(String table, String row, String column) throws IOException - Throws:
IOException
-
checkValueJSON
protected static void checkValueJSON(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
checkIncrementValueJSON
protected static void checkIncrementValueJSON(String table, String row, String column, long value) throws IOException - Throws:
IOException
-
putValueJson
protected static org.apache.hadoop.hbase.rest.client.Response putValueJson(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
putValueJson
protected static org.apache.hadoop.hbase.rest.client.Response putValueJson(String url, String table, String row, String column, String value) throws IOException - Throws:
IOException
-
appendValueXML
protected static org.apache.hadoop.hbase.rest.client.Response appendValueXML(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
appendValuePB
protected static org.apache.hadoop.hbase.rest.client.Response appendValuePB(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
appendValueJson
protected static org.apache.hadoop.hbase.rest.client.Response appendValueJson(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
incrementValueXML
protected static org.apache.hadoop.hbase.rest.client.Response incrementValueXML(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-
incrementValuePB
protected static org.apache.hadoop.hbase.rest.client.Response incrementValuePB(String table, String row, String column, String value) throws IOException - Throws:
IOException
-
incrementValueJson
protected static org.apache.hadoop.hbase.rest.client.Response incrementValueJson(String table, String row, String column, String value) throws IOException, javax.xml.bind.JAXBException - Throws:
IOException
javax.xml.bind.JAXBException
-