26 #include <boost/optional.hpp>
28 #include <olp/dataservice/read/DataServiceReadApi.h>
29 #include <olp/dataservice/read/model/Data.h>
30 #include <olp/dataservice/read/model/StreamOffsets.h>
33 namespace dataservice {
57 void SetPartition(std::string value) { partition_ = std::move(value); }
69 const boost::optional<std::string>&
GetChecksum()
const {
return checksum_; }
78 checksum_ = std::move(value);
91 return compressed_data_size_;
102 compressed_data_size_ = value;
115 const boost::optional<int64_t>&
GetDataSize()
const {
return data_size_; }
123 void SetDataSize(boost::optional<int64_t> value) { data_size_ = value; }
140 void SetData(Data value) { data_ = std::move(value); }
168 data_handle_ = std::move(value);
179 const boost::optional<int64_t>&
GetTimestamp()
const {
return timestamp_; }
187 void SetTimestamp(boost::optional<int64_t> value) { timestamp_ = value; }
191 std::string partition_;
192 boost::optional<int64_t> compressed_data_size_;
193 boost::optional<int64_t> data_size_;
194 boost::optional<int64_t> timestamp_;
195 boost::optional<std::string> checksum_;
196 boost::optional<std::string> data_handle_;
235 const Data&
GetData()
const {
return meta_data_.GetData(); }
252 const std::vector<Message>&
GetMessages()
const {
return messages_; }
258 void SetMessages(std::vector<Message> value) { messages_ = std::move(value); }
261 std::vector<Message> messages_;
Represents a message read from a stream layer.
Definition: Messages.h:202
const Data & GetData() const
Gets the actual content of this message.
Definition: Messages.h:235
void SetMetaData(Metadata value)
Sets the Metadata instance of this message.
Definition: Messages.h:215
const StreamOffset & GetOffset() const
Gets the offset in a specific partition of the stream layer.
Definition: Messages.h:222
const Metadata & GetMetaData() const
Gets the Metadata instance of this message.
Definition: Messages.h:209
void SetOffset(StreamOffset value)
Sets the StreamOffset instance of this message.
Definition: Messages.h:228
Represents a vector of messages consumed from a stream layer.
Definition: Messages.h:245
const std::vector< Message > & GetMessages() const
Gets the vector of messages.
Definition: Messages.h:252
void SetMessages(std::vector< Message > value)
Sets the vector of messages.
Definition: Messages.h:258
An offset in a specific partition of a stream layer.
Definition: StreamOffsets.h:35
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24