public class SchemaRegistryHandler extends AbstractWranglerHandler
SchemaRegistryHandler provides schema management service.AbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
SchemaRegistryHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
String name,
String description,
String type)
Creates an entry for Schema with id, name, description and type of schema.
|
void |
delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Deletes the entire entry from the registry.
|
void |
delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
long version)
Deletes a version of schema from the registry for a given schema id.
|
void |
get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Returns information of schema, including schema requested along with versions available and other metadata.
|
void |
get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
long version)
Returns information of schema, including schema requested along with versions available and other metadata.
|
void |
upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Uploads a schema to be associated with the schema id.
|
void |
versions(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id)
Returns list of versions for a give schema id.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@PUT
@Path(value="contexts/{context}/schemas")
public void create(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@QueryParam(value="id")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="description")
String description,
@QueryParam(value="type")
String type)
request - HTTP request handler.responder - HTTP response handler.id - of schema to be created.name - for the schema id being created.description - associated with schema.type - of schema.@POST
@Path(value="contexts/{context}/schemas/{id}")
public void upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - HTTP request handler.responder - HTTP response handler.id - of the schema being uploaded.@DELETE
@Path(value="contexts/{context}/schemas/{id}")
public void delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - HTTP request handler.responder - HTTP response handler.id - of the schema to be deleted.@DELETE
@Path(value="contexts/{context}/schemas/{id}/versions/{version}")
public void delete(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id,
@PathParam(value="version")
long version)
request - HTTP request handler.responder - HTTP response handler.id - of the schemaversion - version of the schema.@GET
@Path(value="contexts/{context}/schemas/{id}/versions/{version}")
public void get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id,
@PathParam(value="version")
long version)
request - HTTP request handler.responder - HTTP response handler.id - of the schema.version - of the schema.@GET
@Path(value="contexts/{context}/schemas/{id}")
public void get(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - HTTP request handler.responder - HTTP response handler.id - of the schema.@GET
@Path(value="contexts/{context}/schemas/{id}/versions")
public void versions(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="id")
String id)
request - HTTP request handler.responder - HTTP response handler.id - of the schema.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.