public static interface S3CsvSource.Builder extends SdkPojo, CopyableBuilder<S3CsvSource.Builder,S3CsvSource>
| Modifier and Type | Method and Description |
|---|---|
default S3CsvSource.Builder |
additionalOptions(Consumer<S3DirectSourceAdditionalOptions.Builder> additionalOptions)
Specifies additional connection options.
|
S3CsvSource.Builder |
additionalOptions(S3DirectSourceAdditionalOptions additionalOptions)
Specifies additional connection options.
|
S3CsvSource.Builder |
compressionType(CompressionType compressionType)
Specifies how the data is compressed.
|
S3CsvSource.Builder |
compressionType(String compressionType)
Specifies how the data is compressed.
|
S3CsvSource.Builder |
escaper(String escaper)
Specifies a character to use for escaping.
|
S3CsvSource.Builder |
exclusions(Collection<String> exclusions)
A string containing a JSON list of Unix-style glob patterns to exclude.
|
S3CsvSource.Builder |
exclusions(String... exclusions)
A string containing a JSON list of Unix-style glob patterns to exclude.
|
S3CsvSource.Builder |
groupFiles(String groupFiles)
Grouping files is turned on by default when the input contains more than 50,000 files.
|
S3CsvSource.Builder |
groupSize(String groupSize)
The target group size in bytes.
|
S3CsvSource.Builder |
maxBand(Integer maxBand)
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent.
|
S3CsvSource.Builder |
maxFilesInBand(Integer maxFilesInBand)
This option specifies the maximum number of files to save from the last maxBand seconds.
|
S3CsvSource.Builder |
multiline(Boolean multiline)
A Boolean value that specifies whether a single record can span multiple lines.
|
S3CsvSource.Builder |
name(String name)
The name of the data store.
|
S3CsvSource.Builder |
optimizePerformance(Boolean optimizePerformance)
A Boolean value that specifies whether to use the advanced SIMD CSV reader along with Apache Arrow based
columnar memory formats.
|
S3CsvSource.Builder |
outputSchemas(Collection<GlueSchema> outputSchemas)
Specifies the data schema for the S3 CSV source.
|
S3CsvSource.Builder |
outputSchemas(Consumer<GlueSchema.Builder>... outputSchemas)
Specifies the data schema for the S3 CSV source.
|
S3CsvSource.Builder |
outputSchemas(GlueSchema... outputSchemas)
Specifies the data schema for the S3 CSV source.
|
S3CsvSource.Builder |
paths(Collection<String> paths)
A list of the Amazon S3 paths to read from.
|
S3CsvSource.Builder |
paths(String... paths)
A list of the Amazon S3 paths to read from.
|
S3CsvSource.Builder |
quoteChar(QuoteChar quoteChar)
Specifies the character to use for quoting.
|
S3CsvSource.Builder |
quoteChar(String quoteChar)
Specifies the character to use for quoting.
|
S3CsvSource.Builder |
recurse(Boolean recurse)
If set to true, recursively reads files in all subdirectories under the specified paths.
|
S3CsvSource.Builder |
separator(Separator separator)
Specifies the delimiter character.
|
S3CsvSource.Builder |
separator(String separator)
Specifies the delimiter character.
|
S3CsvSource.Builder |
skipFirst(Boolean skipFirst)
A Boolean value that specifies whether to skip the first data line.
|
S3CsvSource.Builder |
withHeader(Boolean withHeader)
A Boolean value that specifies whether to treat the first line as a header.
|
S3CsvSource.Builder |
writeHeader(Boolean writeHeader)
A Boolean value that specifies whether to write the header to output.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildS3CsvSource.Builder name(String name)
The name of the data store.
name - The name of the data store.S3CsvSource.Builder paths(Collection<String> paths)
A list of the Amazon S3 paths to read from.
paths - A list of the Amazon S3 paths to read from.S3CsvSource.Builder paths(String... paths)
A list of the Amazon S3 paths to read from.
paths - A list of the Amazon S3 paths to read from.S3CsvSource.Builder compressionType(String compressionType)
Specifies how the data is compressed. This is generally not necessary if the data has a standard file
extension. Possible values are "gzip" and "bzip").
compressionType - Specifies how the data is compressed. This is generally not necessary if the data has a standard file
extension. Possible values are "gzip" and "bzip").CompressionType,
CompressionTypeS3CsvSource.Builder compressionType(CompressionType compressionType)
Specifies how the data is compressed. This is generally not necessary if the data has a standard file
extension. Possible values are "gzip" and "bzip").
compressionType - Specifies how the data is compressed. This is generally not necessary if the data has a standard file
extension. Possible values are "gzip" and "bzip").CompressionType,
CompressionTypeS3CsvSource.Builder exclusions(Collection<String> exclusions)
A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.
exclusions - A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]"
excludes all PDF files.S3CsvSource.Builder exclusions(String... exclusions)
A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.
exclusions - A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]"
excludes all PDF files.S3CsvSource.Builder groupSize(String groupSize)
The target group size in bytes. The default is computed based on the input data size and the size of your
cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to
"inPartition" for this to take effect.
groupSize - The target group size in bytes. The default is computed based on the input data size and the size of
your cluster. When there are fewer than 50,000 input files, "groupFiles" must be set to
"inPartition" for this to take effect.S3CsvSource.Builder groupFiles(String groupFiles)
Grouping files is turned on by default when the input contains more than 50,000 files. To turn on grouping
with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when there are more
than 50,000 files, set this parameter to "none".
groupFiles - Grouping files is turned on by default when the input contains more than 50,000 files. To turn on
grouping with fewer than 50,000 files, set this parameter to "inPartition". To disable grouping when
there are more than 50,000 files, set this parameter to "none".S3CsvSource.Builder recurse(Boolean recurse)
If set to true, recursively reads files in all subdirectories under the specified paths.
recurse - If set to true, recursively reads files in all subdirectories under the specified paths.S3CsvSource.Builder maxBand(Integer maxBand)
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent. Files with modification timestamps falling within the last maxBand milliseconds are tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users don't need to set this option. The default is 900000 milliseconds, or 15 minutes.
maxBand - This option controls the duration in milliseconds after which the s3 listing is likely to be
consistent. Files with modification timestamps falling within the last maxBand milliseconds are
tracked specially when using JobBookmarks to account for Amazon S3 eventual consistency. Most users
don't need to set this option. The default is 900000 milliseconds, or 15 minutes.S3CsvSource.Builder maxFilesInBand(Integer maxFilesInBand)
This option specifies the maximum number of files to save from the last maxBand seconds. If this number is exceeded, extra files are skipped and only processed in the next job run.
maxFilesInBand - This option specifies the maximum number of files to save from the last maxBand seconds. If this
number is exceeded, extra files are skipped and only processed in the next job run.S3CsvSource.Builder additionalOptions(S3DirectSourceAdditionalOptions additionalOptions)
Specifies additional connection options.
additionalOptions - Specifies additional connection options.default S3CsvSource.Builder additionalOptions(Consumer<S3DirectSourceAdditionalOptions.Builder> additionalOptions)
Specifies additional connection options.
This is a convenience method that creates an instance of theS3DirectSourceAdditionalOptions.Builder
avoiding the need to create one manually via S3DirectSourceAdditionalOptions.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to additionalOptions(S3DirectSourceAdditionalOptions).
additionalOptions - a consumer that will call methods on S3DirectSourceAdditionalOptions.BuilderadditionalOptions(S3DirectSourceAdditionalOptions)S3CsvSource.Builder separator(String separator)
Specifies the delimiter character. The default is a comma: ",", but any other character can be specified.
S3CsvSource.Builder separator(Separator separator)
Specifies the delimiter character. The default is a comma: ",", but any other character can be specified.
S3CsvSource.Builder escaper(String escaper)
Specifies a character to use for escaping. This option is used only when reading CSV files. The default value
is none. If enabled, the character which immediately follows is used as-is, except for a small
set of well-known escapes (\n, \r, \t, and \0).
escaper - Specifies a character to use for escaping. This option is used only when reading CSV files. The
default value is none. If enabled, the character which immediately follows is used as-is,
except for a small set of well-known escapes (\n, \r, \t, and
\0).S3CsvSource.Builder quoteChar(String quoteChar)
Specifies the character to use for quoting. The default is a double quote: '"'. Set this to
-1 to turn off quoting entirely.
S3CsvSource.Builder quoteChar(QuoteChar quoteChar)
Specifies the character to use for quoting. The default is a double quote: '"'. Set this to
-1 to turn off quoting entirely.
S3CsvSource.Builder multiline(Boolean multiline)
A Boolean value that specifies whether a single record can span multiple lines. This can occur when a field
contains a quoted new-line character. You must set this option to True if any record spans multiple lines.
The default value is False, which allows for more aggressive file-splitting during parsing.
multiline - A Boolean value that specifies whether a single record can span multiple lines. This can occur when a
field contains a quoted new-line character. You must set this option to True if any record spans
multiple lines. The default value is False, which allows for more aggressive
file-splitting during parsing.S3CsvSource.Builder withHeader(Boolean withHeader)
A Boolean value that specifies whether to treat the first line as a header. The default value is
False.
withHeader - A Boolean value that specifies whether to treat the first line as a header. The default value is
False.S3CsvSource.Builder writeHeader(Boolean writeHeader)
A Boolean value that specifies whether to write the header to output. The default value is True.
writeHeader - A Boolean value that specifies whether to write the header to output. The default value is
True.S3CsvSource.Builder skipFirst(Boolean skipFirst)
A Boolean value that specifies whether to skip the first data line. The default value is False.
skipFirst - A Boolean value that specifies whether to skip the first data line. The default value is
False.S3CsvSource.Builder optimizePerformance(Boolean optimizePerformance)
A Boolean value that specifies whether to use the advanced SIMD CSV reader along with Apache Arrow based columnar memory formats. Only available in Glue version 3.0.
optimizePerformance - A Boolean value that specifies whether to use the advanced SIMD CSV reader along with Apache Arrow
based columnar memory formats. Only available in Glue version 3.0.S3CsvSource.Builder outputSchemas(Collection<GlueSchema> outputSchemas)
Specifies the data schema for the S3 CSV source.
outputSchemas - Specifies the data schema for the S3 CSV source.S3CsvSource.Builder outputSchemas(GlueSchema... outputSchemas)
Specifies the data schema for the S3 CSV source.
outputSchemas - Specifies the data schema for the S3 CSV source.S3CsvSource.Builder outputSchemas(Consumer<GlueSchema.Builder>... outputSchemas)
Specifies the data schema for the S3 CSV source.
This is a convenience method that creates an instance of theGlueSchema.Builder avoiding the need to create one
manually via GlueSchema.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #outputSchemas(List.
outputSchemas - a consumer that will call methods on
GlueSchema.Builder#outputSchemas(java.util.Collection) Copyright © 2023. All rights reserved.