@InterfaceAudience.Private public class SchemaResource extends ResourceBase
Modifier and Type | Field and Description |
---|---|
(package private) static javax.ws.rs.core.CacheControl |
cacheControl |
private static org.slf4j.Logger |
LOG |
(package private) TableResource |
tableResource |
accessDeniedClazz, servlet
CRLF, CUSTOM_FILTERS, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, FILTER_CLASSES, 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_CONNECTOR_ACCEPT_QUEUE_SIZE, REST_DNS_INTERFACE, REST_DNS_NAMESERVER, REST_KERBEROS_PRINCIPAL, REST_KEYTAB_FILE, 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_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 and Description |
---|
SchemaResource(TableResource tableResource)
Constructor
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
delete(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
get(javax.ws.rs.core.UriInfo uriInfo) |
private HTableDescriptor |
getTableSchema() |
javax.ws.rs.core.Response |
post(TableSchemaModel model,
javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
put(TableSchemaModel model,
javax.ws.rs.core.UriInfo uriInfo) |
private javax.ws.rs.core.Response |
replace(TableName name,
TableSchemaModel model,
javax.ws.rs.core.UriInfo uriInfo,
Admin admin) |
private javax.ws.rs.core.Response |
update(TableName name,
TableSchemaModel model,
javax.ws.rs.core.UriInfo uriInfo,
Admin admin) |
private javax.ws.rs.core.Response |
update(TableSchemaModel model,
boolean replace,
javax.ws.rs.core.UriInfo uriInfo) |
processException
private static final org.slf4j.Logger LOG
static javax.ws.rs.core.CacheControl cacheControl
TableResource tableResource
public SchemaResource(TableResource tableResource) throws IOException
tableResource
- IOException
private HTableDescriptor getTableSchema() throws IOException, TableNotFoundException
IOException
TableNotFoundException
@GET @Produces(value={"text/plain","text/xml","application/json","application/x-protobuf","application/protobuf"}) public javax.ws.rs.core.Response get(@Context javax.ws.rs.core.UriInfo uriInfo)
private javax.ws.rs.core.Response replace(TableName name, TableSchemaModel model, javax.ws.rs.core.UriInfo uriInfo, Admin admin)
private javax.ws.rs.core.Response update(TableName name, TableSchemaModel model, javax.ws.rs.core.UriInfo uriInfo, Admin admin)
private javax.ws.rs.core.Response update(TableSchemaModel model, boolean replace, javax.ws.rs.core.UriInfo uriInfo)
@PUT @Consumes(value={"text/xml","application/json","application/x-protobuf","application/protobuf"}) public javax.ws.rs.core.Response put(TableSchemaModel model, @Context javax.ws.rs.core.UriInfo uriInfo)
@POST @Consumes(value={"text/xml","application/json","application/x-protobuf","application/protobuf"}) public javax.ws.rs.core.Response post(TableSchemaModel model, @Context javax.ws.rs.core.UriInfo uriInfo)
@DELETE public javax.ws.rs.core.Response delete(@Context javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.