26#include <olp/core/porting/optional.h>
27#include <olp/dataservice/read/DataServiceReadApi.h>
28#include <olp/dataservice/read/model/Data.h>
29#include <olp/dataservice/read/model/StreamOffsets.h>
32namespace dataservice {
56 void SetPartition(std::string value) { partition_ = std::move(value); }
79 checksum_ = std::move(value);
92 return compressed_data_size_;
103 compressed_data_size_ = value;
116 const porting::optional<int64_t>&
GetDataSize()
const {
return data_size_; }
124 void SetDataSize(porting::optional<int64_t> value) { data_size_ = value; }
141 void SetData(Data value) { data_ = std::move(value); }
169 data_handle_ = std::move(value);
180 const porting::optional<int64_t>&
GetTimestamp()
const {
return timestamp_; }
188 void SetTimestamp(porting::optional<int64_t> value) { timestamp_ = value; }
192 std::string partition_;
193 porting::optional<int64_t> compressed_data_size_;
194 porting::optional<int64_t> data_size_;
195 porting::optional<int64_t> timestamp_;
196 porting::optional<std::string> checksum_;
197 porting::optional<std::string> data_handle_;
236 const Data&
GetData()
const {
return meta_data_.GetData(); }
253 const std::vector<Message>&
GetMessages()
const {
return messages_; }
259 void SetMessages(std::vector<Message> value) { messages_ = std::move(value); }
262 std::vector<Message> messages_;
Represents a message read from a stream layer.
Definition Messages.h:203
const StreamOffset & GetOffset() const
Gets the offset in a specific partition of the stream layer.
Definition Messages.h:223
const Data & GetData() const
Gets the actual content of this message.
Definition Messages.h:236
void SetMetaData(Metadata value)
Sets the Metadata instance of this message.
Definition Messages.h:216
const Metadata & GetMetaData() const
Gets the Metadata instance of this message.
Definition Messages.h:210
void SetOffset(StreamOffset value)
Sets the StreamOffset instance of this message.
Definition Messages.h:229
Represents a vector of messages consumed from a stream layer.
Definition Messages.h:246
void SetMessages(std::vector< Message > value)
Sets the vector of messages.
Definition Messages.h:259
const std::vector< Message > & GetMessages() const
Gets the vector of messages.
Definition Messages.h:253
An offset in a specific partition of a stream layer.
Definition StreamOffsets.h:35
Rules all the other namespaces.
Definition AppleSignInProperties.h:24