Package org.apache.hadoop.hbase.rest
Class TableResource
java.lang.Object
org.apache.hadoop.hbase.rest.ResourceBase
org.apache.hadoop.hbase.rest.TableResource
- All Implemented Interfaces:
Constants
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Base64.Decoder
private static final org.slf4j.Logger
(package private) String
Fields inherited from class org.apache.hadoop.hbase.rest.ResourceBase
accessDeniedClazz, servlet
Fields inherited from interface org.apache.hadoop.hbase.rest.Constants
CRLF, 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 Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
exists()
Returns true if the table exists ngetMultipleRowResource
(String versions, String path) (package private) String
getName()
Returns the table namegetRowResource
(String rowspec, String versions, String check, String returnResult, String keyEncodingHeader, String keyEncodingQuery) getRowResourceWithSuffixGlobbing
(String suffixglobbingspec, String versions, String check, String returnResult, String keyEncodingHeader, String keyEncodingQuery) getScanResource
(String scanSpec, int userRequestedLimit, String startRow, String endRow, List<String> column, int maxVersions, int batchSize, long startTime, long endTime, boolean cacheBlocks, boolean reversed, String paramFilter, String paramFilterB64) Methods inherited from class org.apache.hadoop.hbase.rest.ResourceBase
processException
-
Field Details
-
table
-
LOG
-
base64Urldecoder
-
-
Constructor Details
-
TableResource
Constructor- Throws:
IOException
-
-
Method Details
-
getName
Returns the table name -
exists
Returns true if the table exists n- Throws:
IOException
-
getExistsResource
- Throws:
IOException
-
getRegionsResource
- Throws:
IOException
-
getScannerResource
- Throws:
IOException
-
getSchemaResource
- Throws:
IOException
-
getMultipleRowResource
@Path("{multiget: multiget.*}") public MultiRowResource getMultipleRowResource(@QueryParam("v") String versions, @PathParam("multiget") String path) throws IOException - Throws:
IOException
-
getRowResource
@Path("{rowspec: [^*]+}") public RowResource getRowResource(@PathParam("rowspec") @Encoded String rowspec, @QueryParam("v") String versions, @QueryParam("check") String check, @QueryParam("rr") String returnResult, @HeaderParam("Encoding") String keyEncodingHeader, @QueryParam("e") String keyEncodingQuery) throws IOException - Throws:
IOException
-
getRowResourceWithSuffixGlobbing
@Path("{suffixglobbingspec: .*\\*/.+}") public RowResource getRowResourceWithSuffixGlobbing(@PathParam("suffixglobbingspec") @Encoded String suffixglobbingspec, @QueryParam("v") String versions, @QueryParam("check") String check, @QueryParam("rr") String returnResult, @HeaderParam("Encoding") String keyEncodingHeader, @QueryParam("e") String keyEncodingQuery) throws IOException - Throws:
IOException
-
getScanResource
@Path("{scanspec: .*[*]$}") public TableScanResource getScanResource(@PathParam("scanspec") String scanSpec, @DefaultValue("2147483647") @QueryParam("limit") int userRequestedLimit, @DefaultValue("") @QueryParam("startrow") String startRow, @DefaultValue("") @QueryParam("endrow") String endRow, @QueryParam("column") List<String> column, @DefaultValue("1") @QueryParam("maxversions") int maxVersions, @DefaultValue("-1") @QueryParam("batchsize") int batchSize, @DefaultValue("0") @QueryParam("starttime") long startTime, @DefaultValue("9223372036854775807") @QueryParam("endtime") long endTime, @DefaultValue("true") @QueryParam("cacheblocks") boolean cacheBlocks, @DefaultValue("false") @QueryParam("reversed") boolean reversed, @QueryParam("filter") String paramFilter, @QueryParam("filter_b64") @Encoded String paramFilterB64)
-