Package org.apache.hadoop.hbase.rest
Class RowResource
java.lang.Object
org.apache.hadoop.hbase.rest.ResourceBase
org.apache.hadoop.hbase.rest.RowResource
- All Implemented Interfaces:
- Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final org.slf4j.Loggerprivate booleanprivate RowSpecprivate TableResourceFields inherited from class org.apache.hadoop.hbase.rest.ResourceBaseaccessDeniedClazz, servletFields inherited from interface org.apache.hadoop.hbase.rest.ConstantsCRLF, CUSTOM_FILTERS, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, DEFAULT_REST_CLIENT_CONN_TIMEOUT, DEFAULT_REST_CLIENT_SOCKET_TIMEOUT, DEFAULT_REST_SCANNERCACHE_EXPIRE_TIME_MS, DEFAULT_REST_SCANNERCACHE_SIZE, FILTER, FILTER_B64, FILTER_CLASSES, KEY_ENCODING_QUERY_PARAM_NAME, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, NOCACHE_PARAM_NAME, REST_AUTHENTICATION_PRINCIPAL, REST_AUTHENTICATION_TYPE, REST_CLIENT_CONN_TIMEOUT, REST_CLIENT_SOCKET_TIMEOUT, REST_CONNECTOR_ACCEPT_QUEUE_SIZE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, REST_SCANNERCACHE_EXPIRE_TIME, REST_SCANNERCACHE_SIZE, REST_SSL_ENABLED, REST_SSL_EXCLUDE_CIPHER_SUITES, REST_SSL_EXCLUDE_PROTOCOLS, REST_SSL_INCLUDE_CIPHER_SUITES, REST_SSL_INCLUDE_PROTOCOLS, REST_SSL_KEYSTORE_KEYPASSWORD, REST_SSL_KEYSTORE_PASSWORD, REST_SSL_KEYSTORE_STORE, REST_SSL_KEYSTORE_TYPE, REST_SSL_TRUSTSTORE_PASSWORD, REST_SSL_TRUSTSTORE_STORE, REST_SSL_TRUSTSTORE_TYPE, REST_THREAD_POOL_TASK_QUEUE_SIZE, REST_THREAD_POOL_THREAD_IDLE_TIMEOUT, REST_THREAD_POOL_THREADS_MAX, REST_THREAD_POOL_THREADS_MIN, ROW_KEYS_PARAM_NAME, SCAN_BATCH_SIZE, SCAN_CACHE_BLOCKS, SCAN_COLUMN, SCAN_END_ROW, SCAN_END_TIME, SCAN_FETCH_SIZE, SCAN_FILTER, SCAN_LIMIT, SCAN_MAX_VERSIONS, SCAN_REVERSED, SCAN_START_ROW, SCAN_START_TIME, VERSION_STRING
- 
Constructor SummaryConstructorsConstructorDescriptionRowResource(TableResource tableResource, String rowspec, String versions, String check, String returnResult, String keyEncoding) Constructor
- 
Method SummaryModifier and TypeMethodDescription(package private) org.apache.hbase.thirdparty.javax.ws.rs.core.Responseappend(CellSetModel model) Validates the input request parameters, parses columns from CellSetModel, and invokes Append on HTable.(package private) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponsecheckAndDelete(CellSetModel model) Validates the input request parameters, parses columns from CellSetModel, and invokes checkAndDelete on HTable.(package private) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponsecheckAndPut(CellSetModel model) Validates the input request parameters, parses columns from CellSetModel, and invokes checkAndPut on HTable.org.apache.hbase.thirdparty.javax.ws.rs.core.Responsedelete(org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) org.apache.hbase.thirdparty.javax.ws.rs.core.Responseget(org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponsegetBinary(org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) (package private) org.apache.hbase.thirdparty.javax.ws.rs.core.Responseincrement(CellSetModel model) Validates the input request parameters, parses columns from CellSetModel, and invokes Increment on HTable.org.apache.hbase.thirdparty.javax.ws.rs.core.Responsepost(CellSetModel model, org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponsepostBinary(byte[] message, org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo, org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers) org.apache.hbase.thirdparty.javax.ws.rs.core.Responseput(CellSetModel model, org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponseputBinary(byte[] message, org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo, org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers) (package private) org.apache.hbase.thirdparty.javax.ws.rs.core.Responseupdate(CellSetModel model, boolean replace) (package private) org.apache.hbase.thirdparty.javax.ws.rs.core.ResponseupdateBinary(byte[] message, org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers, boolean replace) Methods inherited from class org.apache.hadoop.hbase.rest.ResourceBaseprocessException
- 
Field Details- 
LOG
- 
CHECK_PUT- See Also:
 
- 
CHECK_DELETE- See Also:
 
- 
CHECK_APPEND- See Also:
 
- 
CHECK_INCREMENT- See Also:
 
- 
tableResource
- 
rowspec
- 
check
- 
returnResult
 
- 
- 
Constructor Details- 
RowResourcepublic RowResource(TableResource tableResource, String rowspec, String versions, String check, String returnResult, String keyEncoding) throws IOException Constructor- Throws:
- IOException
 
 
- 
- 
Method Details- 
get@GET @Produces({"text/xml","application/json","application/x-protobuf","application/protobuf"}) public org.apache.hbase.thirdparty.javax.ws.rs.core.Response get(@Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) 
- 
getBinary@GET @Produces("application/octet-stream") public org.apache.hbase.thirdparty.javax.ws.rs.core.Response getBinary(@Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) 
- 
update
- 
updateBinaryorg.apache.hbase.thirdparty.javax.ws.rs.core.Response updateBinary(byte[] message, org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers, boolean replace) 
- 
put@PUT @Consumes({"text/xml","application/json","application/x-protobuf","application/protobuf"}) public org.apache.hbase.thirdparty.javax.ws.rs.core.Response put(CellSetModel model, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) 
- 
putBinary@PUT @Consumes("application/octet-stream") public org.apache.hbase.thirdparty.javax.ws.rs.core.Response putBinary(byte[] message, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers) 
- 
post@POST @Consumes({"text/xml","application/json","application/x-protobuf","application/protobuf"}) public org.apache.hbase.thirdparty.javax.ws.rs.core.Response post(CellSetModel model, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) 
- 
postBinary@POST @Consumes("application/octet-stream") public org.apache.hbase.thirdparty.javax.ws.rs.core.Response postBinary(byte[] message, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo, @Context org.apache.hbase.thirdparty.javax.ws.rs.core.HttpHeaders headers) 
- 
delete@DELETE public org.apache.hbase.thirdparty.javax.ws.rs.core.Response delete(@Context org.apache.hbase.thirdparty.javax.ws.rs.core.UriInfo uriInfo) 
- 
checkAndPutValidates the input request parameters, parses columns from CellSetModel, and invokes checkAndPut on HTable.- Parameters:
- model- instance of CellSetModel
- Returns:
- Response 200 OK, 304 Not modified, 400 Bad request
 
- 
checkAndDeleteValidates the input request parameters, parses columns from CellSetModel, and invokes checkAndDelete on HTable.- Parameters:
- model- instance of CellSetModel
- Returns:
- Response 200 OK, 304 Not modified, 400 Bad request
 
- 
appendValidates the input request parameters, parses columns from CellSetModel, and invokes Append on HTable.- Parameters:
- model- instance of CellSetModel
- Returns:
- Response 200 OK, 304 Not modified, 400 Bad request
 
- 
incrementValidates the input request parameters, parses columns from CellSetModel, and invokes Increment on HTable.- Parameters:
- model- instance of CellSetModel
- Returns:
- Response 200 OK, 304 Not modified, 400 Bad request
 
 
-