public class GCSHandler extends AbstractWranglerHandler
GCS filesystemAbstractWranglerHandler.NamespacedResponder<T>| Constructor and Description |
|---|
GCSHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
exploreGCS(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String path,
int objectLimit)
Lists GCS bucket's contents for the given prefix path.
|
void |
initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context) |
void |
loadObject(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String bucket,
String blobPath,
String scope)
Reads GCS object into workspace.
|
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 |
testGCSConnection(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, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClasspublic void initialize(io.cdap.cdap.api.service.http.SystemHttpServiceContext context)
throws Exception
initialize in interface io.cdap.cdap.api.ProgramLifecycle<io.cdap.cdap.api.service.http.SystemHttpServiceContext>initialize in interface io.cdap.cdap.api.service.http.HttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>initialize in class io.cdap.cdap.api.service.http.AbstractHttpServiceHandler<io.cdap.cdap.api.service.http.SystemHttpServiceContext,io.cdap.cdap.api.service.http.SystemHttpServiceConfigurer>Exception@POST
@Path(value="/contexts/{context}/connections/gcs/test")
public void testGCSConnection(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}/gcs/explore")
public void exploreGCS(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="path")
String path,
@QueryParam(value="limit") @DefaultValue(value="1000")
int objectLimit)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/gcs/buckets/{bucket}/read")
public void loadObject(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="bucket")
String bucket,
@QueryParam(value="blob")
String blobPath,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/gcs/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.