public class SelectBinding extends Object
| Constructor and Description |
|---|
SelectBinding(WriteOperationHelper operations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.s3.model.InputSerialization |
buildCsvInputRequest(org.apache.hadoop.conf.Configuration ownerConf,
org.apache.hadoop.conf.Configuration builderOptions)
Build the CSV input request.
|
com.amazonaws.services.s3.model.OutputSerialization |
buildCSVOutput(org.apache.hadoop.conf.Configuration ownerConf,
org.apache.hadoop.conf.Configuration builderOptions)
Build CSV output for a request.
|
com.amazonaws.services.s3.model.SelectObjectContentRequest |
buildSelectRequest(org.apache.hadoop.fs.Path path,
String expression,
org.apache.hadoop.conf.Configuration builderOptions,
Optional<com.amazonaws.services.s3.model.SSECustomerKey> sseKey)
Build a select request.
|
boolean |
isEnabled()
Is the service supported?
|
org.apache.hadoop.fs.FSDataInputStream |
select(S3AReadOpContext readContext,
String expression,
org.apache.hadoop.conf.Configuration builderOptions,
Optional<com.amazonaws.services.s3.model.SSECustomerKey> sseKey,
S3ObjectAttributes objectAttributes)
Build and execute a select request.
|
static String |
toString(com.amazonaws.services.s3.model.SelectObjectContentRequest request)
Stringify the given SelectObjectContentRequest, as its
toString() operator doesn't.
|
public SelectBinding(WriteOperationHelper operations)
operations - owning FS.public boolean isEnabled()
@Retries.RetryTranslated public org.apache.hadoop.fs.FSDataInputStream select(S3AReadOpContext readContext, String expression, org.apache.hadoop.conf.Configuration builderOptions, Optional<com.amazonaws.services.s3.model.SSECustomerKey> sseKey, S3ObjectAttributes objectAttributes) throws IOException
readContext - the read context, which includes the source path.expression - the SQL expression.builderOptions - query optionssseKey - optional SSE customer keyobjectAttributes - object attributes from a HEAD requestIllegalArgumentException - argument failureIOException - failure building, validating or executing the request.org.apache.hadoop.fs.PathIOException - source path is a directory.public com.amazonaws.services.s3.model.SelectObjectContentRequest buildSelectRequest(org.apache.hadoop.fs.Path path,
String expression,
org.apache.hadoop.conf.Configuration builderOptions,
Optional<com.amazonaws.services.s3.model.SSECustomerKey> sseKey)
throws IOException
path - source path.expression - the SQL expression.builderOptions - config to extract other query options fromsseKey - optional SSE customer keyIllegalArgumentException - argument failureIOException - problem building/validating the requestpublic com.amazonaws.services.s3.model.InputSerialization buildCsvInputRequest(org.apache.hadoop.conf.Configuration ownerConf,
org.apache.hadoop.conf.Configuration builderOptions)
throws IllegalArgumentException,
IOException
ownerConf - FS owner configurationbuilderOptions - options on the specific requestIllegalArgumentException - argument failureIOException - validation failurepublic com.amazonaws.services.s3.model.OutputSerialization buildCSVOutput(org.apache.hadoop.conf.Configuration ownerConf,
org.apache.hadoop.conf.Configuration builderOptions)
throws IllegalArgumentException,
IOException
ownerConf - FS owner configurationbuilderOptions - options on the specific requestIllegalArgumentException - argument failureIOException - validation failurepublic static String toString(com.amazonaws.services.s3.model.SelectObjectContentRequest request)
request - request to convert to a stringCopyright © 2008–2020 Apache Software Foundation. All rights reserved.