Class S3Options.S3UploadBufferSizeBytesFactory
java.lang.Object
org.apache.beam.sdk.io.aws2.options.S3Options.S3UploadBufferSizeBytesFactory
- All Implemented Interfaces:
DefaultValueFactory<Integer>
- Enclosing interface:
S3Options
public static class S3Options.S3UploadBufferSizeBytesFactory
extends Object
implements DefaultValueFactory<Integer>
Provide the default s3 upload buffer size in bytes: 64MB if more than 512MB in RAM are
available and 5MB otherwise.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory.
-
Field Details
-
REQUIRED_MEMORY_FOR_DEFAULT_BUFFER_BYTES
public static final int REQUIRED_MEMORY_FOR_DEFAULT_BUFFER_BYTES- See Also:
-
MINIMUM_UPLOAD_BUFFER_SIZE_BYTES
public static final int MINIMUM_UPLOAD_BUFFER_SIZE_BYTES- See Also:
-
DEFAULT_UPLOAD_BUFFER_SIZE_BYTES
public static final int DEFAULT_UPLOAD_BUFFER_SIZE_BYTES- See Also:
-
-
Constructor Details
-
S3UploadBufferSizeBytesFactory
public S3UploadBufferSizeBytesFactory()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactoryCreates a default value for a getter marked withDefault.InstanceFactory.- Specified by:
createin interfaceDefaultValueFactory<Integer>- Parameters:
options- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-