public final class ReadAsFutureBytes extends ReadProjectionConfigs.BaseConfig<ApiFuture<byte[]>,BaseObjectReadSessionStreamRead.AccumulatingRead<byte[]>>Read a range of bytes as an ApiFuture<byte[]>
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 > ReadAsFutureBytesMethods
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 ReadAsFutureBytes withRangeSpec(RangeSpec range)Return an instance with the RangeSpec set to the specified value.
Default: RangeSpec#all() See Also: #getRange()
| Parameter | |
|---|---|
| Name | Description |
range |
RangeSpecThe RangeSpec to be used for any read using the returned instance. Must be non-null. |
| Returns | |
|---|---|
| Type | Description |
ReadAsFutureBytes |
|