public final class ReadAsFutureByteString extends ReadProjectionConfigs.BaseConfig<ApiFuture<ZeroCopySupport.DisposableByteString>,BaseObjectReadSessionStreamRead.AccumulatingRead<ZeroCopySupport.DisposableByteString>>
Read a range of byte
s as an ApiFuture<
DisposableByteString
The resulting DisposableByteString MUST be close()ed to avoid leaking memory
Instances of this class are immutable and thread safe. See Also: <xref uid="com.google.cloud.storage.BlobReadSession.<Projection>readAs(com.google.cloud.storage.ReadProjectionConfig<Projection>)" data-throw-if-not-resolved="false">BlobReadSession#readAs(ReadProjectionConfig), ReadProjectionConfigs#asFutureBytes()
Inheritance
Object > ReadProjectionConfig<Projection> > com.google.cloud.storage.ReadProjectionConfigs.BaseConfig > ReadAsFutureByteStringMethods
equals(Object o)
public boolean equals(Object o)
Parameter | |
---|---|
Name | Description |
o |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getRange()
public RangeSpec getRange()
Returns | |
---|---|
Type | Description |
RangeSpec |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
toString()
public String toString()
Returns | |
---|---|
Type | Description |
String |
withRangeSpec(RangeSpec range)
public ReadAsFutureByteString withRangeSpec(RangeSpec range)
Return an instance with the RangeSpec set to the specified value.
Default: RangeSpec#all() See Also: #getRange()
Parameter | |
---|---|
Name | Description |
range |
RangeSpec The RangeSpec to be used for any read using the returned instance. Must be non-null. |
Returns | |
---|---|
Type | Description |
ReadAsFutureByteString |