@Deprecated public class S3Handler extends AbstractWranglerHandler
AbstractWranglerHandler.NamespacedResponder<T>, AbstractWranglerHandler.NamespacedResponderRunnable| Constructor and Description |
|---|
S3Handler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static S3ObjectInfo |
fromDir(String dir)
Deprecated.
|
static S3ObjectInfo |
fromObject(com.amazonaws.services.s3.model.S3ObjectSummary summary,
FileTypeDetector detector)
Deprecated.
|
static Map<String,String> |
getConnectorProperties(Map<String,String> config)
Deprecated.
|
static String |
getPath(Workspace workspace)
Deprecated.
|
void |
getS3BucketInfo(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String path,
int bucketLimit)
Deprecated.
Lists S3 bucket's contents for the given prefix path.
|
void |
loadObject(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace,
String connectionId,
String bucketName,
String key,
int lines,
String sampler,
double fraction,
String scope)
Deprecated.
Reads s3 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 bucketName,
String key,
String workspaceId)
Deprecated.
Specification for the source.
|
void |
testS3Connection(io.cdap.cdap.api.service.http.HttpServiceRequest request,
io.cdap.cdap.api.service.http.HttpServiceResponder responder,
String namespace)
Deprecated.
|
getConnection, getValidatedConnection, getValidatedConnection, getWorkspace, respond, respond, respond, shouldCopyHeadercreateTableconfigure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClass@POST
@Path(value="/contexts/{context}/connections/s3/test")
public void testS3Connection(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}/s3/explore")
public void getS3BucketInfo(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 bucketLimit)
request - HTTP Request handler.responder - HTTP Response handler.@POST
@Path(value="contexts/{context}/connections/{connection-id}/s3/buckets/{bucket-name}/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-name")
String bucketName,
@QueryParam(value="key")
String key,
@QueryParam(value="lines")
int lines,
@QueryParam(value="sampler")
String sampler,
@QueryParam(value="fraction")
double fraction,
@QueryParam(value="scope") @DefaultValue(value="default")
String scope)
request - HTTP Request handler.responder - HTTP Response handler.@GET
@Path(value="contexts/{context}/connections/{connection-id}/s3/buckets/{bucket-name}/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,
@PathParam(value="bucket-name")
String bucketName,
@QueryParam(value="key")
String key,
@QueryParam(value="wid")
String workspaceId)
request - HTTP request handler.responder - HTTP response handler.bucketName - S3 object's bucket namekey - S3 object's keypublic static Map<String,String> getConnectorProperties(Map<String,String> config)
public static S3ObjectInfo fromDir(String dir)
public static S3ObjectInfo fromObject(com.amazonaws.services.s3.model.S3ObjectSummary summary, FileTypeDetector detector)
Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.