@Generated(value="software.amazon.awssdk:codegen") public final class S3JsonSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<S3JsonSource.Builder,S3JsonSource>
Specifies a JSON data store stored in Amazon S3.
| Modifier and Type | Class and Description |
|---|---|
static interface |
S3JsonSource.Builder |
| Modifier and Type | Method and Description |
|---|---|
S3DirectSourceAdditionalOptions |
additionalOptions()
Specifies additional connection options.
|
static S3JsonSource.Builder |
builder() |
CompressionType |
compressionType()
Specifies how the data is compressed.
|
String |
compressionTypeAsString()
Specifies how the data is compressed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
exclusions()
A string containing a JSON list of Unix-style glob patterns to exclude.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
groupFiles()
Grouping files is turned on by default when the input contains more than 50,000 files.
|
String |
groupSize()
The target group size in bytes.
|
boolean |
hasExclusions()
For responses, this returns true if the service returned a value for the Exclusions property.
|
int |
hashCode() |
boolean |
hasOutputSchemas()
For responses, this returns true if the service returned a value for the OutputSchemas property.
|
boolean |
hasPaths()
For responses, this returns true if the service returned a value for the Paths property.
|
String |
jsonPath()
A JsonPath string defining the JSON data.
|
Integer |
maxBand()
This option controls the duration in milliseconds after which the s3 listing is likely to be consistent.
|
Integer |
maxFilesInBand()
This option specifies the maximum number of files to save from the last maxBand seconds.
|
Boolean |
multiline()
A Boolean value that specifies whether a single record can span multiple lines.
|
String |
name()
The name of the data store.
|
List<GlueSchema> |
outputSchemas()
Specifies the data schema for the S3 JSON source.
|
List<String> |
paths()
A list of the Amazon S3 paths to read from.
|
Boolean |
recurse()
If set to true, recursively reads files in all subdirectories under the specified paths.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends S3JsonSource.Builder> |
serializableBuilderClass() |
S3JsonSource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the data store.
public final boolean hasPaths()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<String> paths()
A list of the Amazon S3 paths to read from.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPaths() method.
public final 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").
If the service returns an enum value that is not available in the current SDK version, compressionType
will return CompressionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from compressionTypeAsString().
"gzip" and "bzip").CompressionTypepublic final String compressionTypeAsString()
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").
If the service returns an enum value that is not available in the current SDK version, compressionType
will return CompressionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from compressionTypeAsString().
"gzip" and "bzip").CompressionTypepublic final boolean hasExclusions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> exclusions()
A string containing a JSON list of Unix-style glob patterns to exclude. For example, "[\"**.pdf\"]" excludes all PDF files.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExclusions() method.
public final 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.
"groupFiles" must be set to
"inPartition" for this to take effect.public final 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".
"none".public final Boolean recurse()
If set to true, recursively reads files in all subdirectories under the specified paths.
public final 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.
public final 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.
public final S3DirectSourceAdditionalOptions additionalOptions()
Specifies additional connection options.
public final String jsonPath()
A JsonPath string defining the JSON data.
public final 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.
False, which allows for more aggressive file-splitting during
parsing.public final boolean hasOutputSchemas()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<GlueSchema> outputSchemas()
Specifies the data schema for the S3 JSON source.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasOutputSchemas() method.
public S3JsonSource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<S3JsonSource.Builder,S3JsonSource>public static S3JsonSource.Builder builder()
public static Class<? extends S3JsonSource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.