Encapsulates the fields required to request data for the given catalog, layer, and partition.
More...
|
| const porting::optional< std::string > & | GetPartitionId () const |
| | Gets the ID of the requested partition.
|
| |
| template<class T = porting::optional<std::string>> |
| DataRequest & | WithPartitionId (T &&partition_id) |
| | Sets the partition ID.
|
| |
| const porting::optional< std::string > & | GetDataHandle () const |
| | Get the partition data handle.
|
| |
| template<class T = porting::optional<std::string>> |
| DataRequest & | WithDataHandle (T &&data_handle) |
| | Sets the partition data handle.
|
| |
| const porting::optional< std::string > & | GetBillingTag () const |
| | Gets the billing tag to group billing records together.
|
| |
| template<class T = porting::optional<std::string>> |
| DataRequest & | WithBillingTag (T &&tag) |
| | Sets the billing tag for the request.
|
| |
| FetchOptions | GetFetchOption () const |
| | Gets the fetch option that controls how requests are handled.
|
| |
| DataRequest & | WithFetchOption (FetchOptions fetch_option) |
| | Sets the fetch option that you can use to set the source from which data should be fetched.
|
| |
| uint32_t | GetPriority () const |
| | Gets the request priority.
|
| |
| DataRequest & | WithPriority (uint32_t priority) |
| | Sets the priority of the request.
|
| |
| std::string | CreateKey (const std::string &layer_id, porting::optional< int64_t > version) const |
| | Creates a readable format for the request.
|
| |
Encapsulates the fields required to request data for the given catalog, layer, and partition.
You should specify either a partition ID or a data handle. If both the partition ID and data handle are set in the request, the request fails with the following error: ErrorCode::PreconditionFailed.
| const porting::optional< std::string > & olp::dataservice::read::DataRequest::GetDataHandle |
( |
| ) |
const |
|
inline |
Get the partition data handle.
You can use the data handle to retrieve the data that relates to this partition. The data handle identifies a specific blob so that you can request the blob contents with the Blob API. When requesting data from the Blob API, you must specify the catalog ID, layer ID, and data handle.
- Returns
- The partition data handle.