Package com.google.cloud.storage
Class BufferToDiskThenUpload
java.lang.Object
com.google.cloud.storage.BlobWriteSessionConfig
com.google.cloud.storage.BufferToDiskThenUpload
- All Implemented Interfaces:
Serializable
@Immutable
@BetaApi
@TransportCompatibility({GRPC,HTTP})
public final class BufferToDiskThenUpload
extends BlobWriteSessionConfig
There are scenarios in which disk space is more plentiful than memory space. This new
BlobWriteSessionConfig allows augmenting an instance of storage to produce BlobWriteSessions which will buffer to disk rather than holding things in memory.
Once the file on disk is closed, the entire file will then be uploaded to GCS.
-
Method Summary
-
Method Details
-
equals
- Specified by:
equalsin classBlobWriteSessionConfig
-
hashCode
public int hashCode()- Specified by:
hashCodein classBlobWriteSessionConfig
-