public class SpannerHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
SpannerHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
getSpannerDatabases(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String instanceId)
Lists spanner databases for a spanner instance
|
void |
getSpannerInstances(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId)
Lists spanner instances in the project
|
void |
getSpannerTables(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String instanceId,
String databaseId)
Lists spanner tables for a spanner database
|
void |
readTable(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String instanceId,
String databaseId,
String tableId,
String scope,
String limit)
Read spanner table into a workspace and return the workspace identifier
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String workspaceId)
Get the specification for the spanner source plugin.
|
void |
testSpannerConnection(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace) |
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@POST
@Path(value="/contexts/{context}/connections/spanner/test")
public void testSpannerConnection(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace)
@GET
@Path(value="contexts/{context}/connections/{connection-id}/spanner/instances")
public void getSpannerInstances(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId)
@GET
@Path(value="contexts/{context}/connections/{connection-id}/spanner/instances/{instance-id}/databases")
public void getSpannerDatabases(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId,
@PathParam(value="instance-id")
String instanceId)
@GET
@Path(value="contexts/{context}/connections/{connection-id}/spanner/instances/{instance-id}/databases/{database-id}/tables")
public void getSpannerTables(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId,
@PathParam(value="instance-id")
String instanceId,
@PathParam(value="database-id")
String databaseId)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/spanner/instances/{instance-id}/databases/{database-id}/tables/{table-id}/read")
public void readTable(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="connection-id")
String connectionId,
@PathParam(value="instance-id")
String instanceId,
@PathParam(value="database-id")
String databaseId,
@PathParam(value="table-id")
String tableId,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope,
@QueryParam(value="limit") @DefaultValue(value="1000")
String limit)
@GET
@Path(value="contexts/{context}/spanner/workspaces/{workspace-id}/specification")
public void specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
@PathParam(value="context")
String namespace,
@PathParam(value="workspace-id")
String workspaceId)
Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.