OpenBlobForWriteResponse
@ExperimentalAppSearchApi
class OpenBlobForWriteResponse : Closeable
The response to provide batch operation results of openBlobForWriteAsync.
This class is used to retrieve the result of a batch write operation on a collection of blob handles.
The returned android.os.ParcelFileDescriptor must be closed after use to avoid resource leaks. Failing to close the descriptor will result in system resource exhaustion, as each open android.os.ParcelFileDescriptor occupies a limited file descriptor in the system.
Summary
Constants |
|
|---|---|
const Parcelable.Creator<OpenBlobForWriteResponse!> |
Public constructors |
|---|
OpenBlobForWriteResponse(Creates a |
Public functions |
|
|---|---|
Unit |
close() |
AppSearchBatchResult<AppSearchBlobHandle!, ParcelFileDescriptor!> |
Returns the |
Unit |
writeToParcel(dest: Parcel, flags: Int)To be implemented by child classes. |
Constants
Public constructors
OpenBlobForWriteResponse
OpenBlobForWriteResponse(
result: AppSearchBatchResult<AppSearchBlobHandle!, ParcelFileDescriptor!>
)
Creates a OpenBlobForWriteResponse with given AppSearchBatchResult.
Public functions
getResult
fun getResult(): AppSearchBatchResult<AppSearchBlobHandle!, ParcelFileDescriptor!>
Returns the AppSearchBatchResult object containing the results of the write blob for write operation for each AppSearchBlobHandle.
| Returns | |
|---|---|
AppSearchBatchResult<AppSearchBlobHandle!, ParcelFileDescriptor!> |
A |
writeToParcel
fun writeToParcel(dest: Parcel, flags: Int): Unit
To be implemented by child classes.
This is purely for code sync purpose. Have writeToParcel here so we can keep "@Override" in child classes.