Package com.google.cloud.storage
Class ReadAsFutureByteString
java.lang.Object
com.google.cloud.storage.ReadProjectionConfig<Projection>
com.google.cloud.storage.ReadAsFutureByteString
@BetaApi
@Immutable
public final class ReadAsFutureByteString
extends ReadProjectionConfig<Projection>
Read a range of
bytes as an ApiFuture<ZeroCopySupport.DisposableByteString
>
The resulting ZeroCopySupport.DisposableByteString MUST be close()ed to avoid leaking memory
Instances of this class are immutable and thread safe.
- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
Method Summary
-
Method Details
-
getRange
TheRangeSpecto be used for any read using this instance.Default:
RangeSpec.all()- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
-
withRangeSpec
Return an instance with theRangeSpecset to the specified value.Default:
RangeSpec.all()- Parameters:
range- TheRangeSpecto be used for any read using the returned instance. Must be non-null.- Since:
- 2.51.0 This new api is in preview and is subject to breaking changes.
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-