public class BigQueryHandler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
BigQueryHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
listDatasets(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId) |
void |
listTables(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String datasetStr)
List all tables in a dataset.
|
void |
readTable(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String datasetStr,
String tableId,
String scope)
Read a table.
|
void |
specification(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String workspaceId)
Specification for the source.
|
void |
testBiqQueryConnection(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/bigquery/test")
public void testBiqQueryConnection(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}/bigquery")
public void listDatasets(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}/bigquery/{dataset-id}/tables")
public void listTables(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="dataset-id")
String datasetStr)
request - HTTP requests handler.responder - HTTP response handler.datasetStr - the dataset id as a string. It will be of the form [project:]name.
The project prefix is optional. When not given, the connection project should be used.@GET
@Path(value="contexts/{context}/connections/{connection-id}/bigquery/{dataset-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="dataset-id")
String datasetStr,
@PathParam(value="table-id")
String tableId,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP requests handler.responder - HTTP response handler.connectionId - Connection Id for BigQuery Service.datasetStr - id of the dataset on BigQuery.tableId - id of the BigQuery table.scope - Group the workspace is created in.@GET
@Path(value="contexts/{context}/connections/{connection-id}/bigquery/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="connection-id")
String connectionId,
@QueryParam(value="wid")
String workspaceId)
request - HTTP request handler.responder - HTTP response handler.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.