public class DataModelHandler extends AbstractWranglerHandler
DataModelHandler class provides data model schema listings APIs.AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
DataModelHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
listSchema(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String id,
long revision)
Retrieves the schema of a specific revision of a data model.
|
void |
listSchemas(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Returns a list of all data models available.
|
void |
upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Uploads a one or more data model schemas into the internal data model glossary.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@POST
@Path(value="contexts/{context}/datamodels/schemas")
public void upload(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - the HTTP request handler.responder - the HTTP response handler.namespace - the context of the request.@GET
@Path(value="contexts/{context}/datamodels/schemas")
public void listSchemas(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
request - the HTTP request handler.responder - the HTTP response handler.namespace - the context of the request.@GET
@Path(value="contexts/{context}/datamodels/schemas/{id}/revisions/{revision}")
public void listSchema(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="revision")
long revision)
request - the HTTP request handler.responder - the HTTP response handler.namespace - the context of the request.id - of the data model.revision - of the data model.Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.