Package io.deephaven.extensions.s3
Class S3Instructions
java.lang.Object
io.deephaven.extensions.s3.S3Instructions
- All Implemented Interfaces:
LogOutputAppendable
This class provides instructions intended for reading from and writing to S3-compatible APIs. The default values
documented in this class may change in the future. As such, callers may wish to explicitly set the values.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic S3Instructions.Builderbuilder()The amount of time to wait when initially establishing a connection before giving up and timing out, defaults to 2 seconds.The credentials to use when reading or writing to S3.The endpoint to connect to.intThe maximum byte size of each fragment to read from S3, defaults to 65536, must be larger than 8192.intThe maximum number of concurrent requests to make to S3, defaults to 256.intThe number of fragments to send asynchronous read requests for while reading the current fragment.The amount of time to wait when reading a fragment before giving up and timing out, defaults to 2 seconds.The region name to use when reading or writing to S3.
-
Constructor Details
-
S3Instructions
public S3Instructions()
-
-
Method Details
-
builder
-
regionName
The region name to use when reading or writing to S3. If not provided, the region name is picked by the AWS SDK from 'aws.region' system property, "AWS_REGION" environment variable, the {user.home}/.aws/credentials or {user.home}/.aws/config files, or from EC2 metadata service, if running in EC2. -
maxConcurrentRequests
@Default public int maxConcurrentRequests()The maximum number of concurrent requests to make to S3, defaults to 256. -
readAheadCount
@Default public int readAheadCount()The number of fragments to send asynchronous read requests for while reading the current fragment. Defaults to 32, which means by default, we will fetch 32 fragments in advance when reading current fragment. -
fragmentSize
@Default public int fragmentSize()The maximum byte size of each fragment to read from S3, defaults to 65536, must be larger than 8192. If there are fewer bytes remaining in the file, the fetched fragment can be smaller. -
connectionTimeout
The amount of time to wait when initially establishing a connection before giving up and timing out, defaults to 2 seconds. -
readTimeout
The amount of time to wait when reading a fragment before giving up and timing out, defaults to 2 seconds. The implementation may choose to internally retry the request multiple times, so long as the total time does not exceed this timeout. -
credentials
The credentials to use when reading or writing to S3. By default, usesCredentials.defaultCredentials(). -
append
- Specified by:
appendin interfaceLogOutputAppendable
-
endpointOverride
The endpoint to connect to. Callers connecting to AWS do not typically need to set this; it is most useful when connecting to non-AWS, S3-compatible APIs.- See Also:
-