Package org.apache.hadoop.hbase.rest
Class RowResourceBase
java.lang.Object
org.apache.hadoop.hbase.rest.RowResourceBase
- Direct Known Subclasses:
TestDeleteRow,TestGetAndPutResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static org.apache.hadoop.hbase.rest.client.Clientprotected static final Stringprotected static final Stringprotected static final Stringprotected static org.apache.hadoop.conf.Configurationprotected static JAXBContextprotected static com.fasterxml.jackson.databind.ObjectMapperprotected static final HBaseRESTTestingUtilityprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final org.apache.hadoop.hbase.TableNameprotected static final HBaseTestingUtilityprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static Marshallerprotected static Unmarshaller -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected static org.apache.hadoop.hbase.rest.client.ResponseappendValueJson(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponseappendValuePB(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponseappendValueXML(String table, String row, String column, String value) voidprotected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteJson(String table, String row, String column, String valueToCheck) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteJson(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteJson(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeletePB(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeletePB(String table, String row, String column, String value, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteValuePB(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteXML(String table, String row, String column, String valueToCheck) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteXML(String url, String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndDeleteXML(String table, String row, String column, String valueToCheck, HashMap<String, String> cellsToDelete) protected static org.apache.hadoop.hbase.rest.client.Responseprotected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndPutValuePB(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndPutValuePB(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndPutValueXML(String table, String row, String column, String valueToCheck, String valueToPut) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndPutValueXML(String url, String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static org.apache.hadoop.hbase.rest.client.ResponsecheckAndPutValueXML(String table, String row, String column, String valueToCheck, String valueToPut, HashMap<String, String> otherCells) protected static voidcheckIncrementValueJSON(String table, String row, String column, long value) protected static voidcheckIncrementValuePB(String table, String row, String column, long value) protected static voidcheckIncrementValueXML(String table, String row, String column, long value) protected static voidcheckValueJSON(String table, String row, String column, String value) protected static voidcheckValuePB(String table, String row, String column, String value) protected static voidcheckValueXML(String table, String row, String column, String value) protected static voidprotected static org.apache.hadoop.hbase.rest.client.Responseprotected static org.apache.hadoop.hbase.rest.client.ResponsedeleteRowB64(String table, String row, boolean useQueryString) protected static org.apache.hadoop.hbase.rest.client.ResponsedeleteValue(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.ResponsedeleteValueB64(String table, String row, String column, boolean useQueryString) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueJson(String url) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueJson(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValuePB(String url) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValuePB(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueXML(String url) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueXML(String table, String row, String column) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueXML(String table, String startRow, String endRow, String column) protected static org.apache.hadoop.hbase.rest.client.ResponsegetValueXML(String url, org.apache.http.Header[] headers) protected static org.apache.hadoop.hbase.rest.client.ResponseincrementValueJson(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponseincrementValuePB(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponseincrementValueXML(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.ResponseputValueJson(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.ResponseputValuePB(String table, String row, String column, String value) (package private) static org.apache.hadoop.hbase.rest.client.Responseprotected static org.apache.hadoop.hbase.rest.client.ResponseputValueXML(String table, String row, String column, String value) protected static org.apache.hadoop.hbase.rest.client.Responsestatic voidstatic 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, JAXBException - Throws:
IOExceptionJAXBException
-
checkValueXML
protected static void checkValueXML(String table, String row, String column, String value) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
checkIncrementValueXML
protected static void checkIncrementValueXML(String table, String row, String column, long value) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException - Throws:
IOExceptionJAXBException
-
putValueXML
protected static org.apache.hadoop.hbase.rest.client.Response putValueXML(String url, String table, String row, String column, String value) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException- Throws:
IOExceptionJAXBException
-
checkAndPutValueXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndPutValueXML(String table, String row, String column, String valueToCheck, String valueToPut) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException- Throws:
IOExceptionJAXBException
-
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, JAXBException- Throws:
IOExceptionJAXBException
-
checkAndDeleteXML
protected static org.apache.hadoop.hbase.rest.client.Response checkAndDeleteXML(String table, String row, String column, String valueToCheck) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException- Throws:
IOExceptionJAXBException
-
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, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException - Throws:
IOExceptionJAXBException
-
incrementValueXML
protected static org.apache.hadoop.hbase.rest.client.Response incrementValueXML(String table, String row, String column, String value) throws IOException, JAXBException - Throws:
IOExceptionJAXBException
-
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, JAXBException - Throws:
IOExceptionJAXBException
-