26 #include <boost/optional.hpp>
28 #include <olp/dataservice/read/DataServiceReadApi.h>
31 namespace dataservice {
48 boost::optional<std::string> checksum_;
49 boost::optional<int64_t> compressed_data_size_;
50 std::string data_handle_;
51 boost::optional<int64_t> data_size_;
52 boost::optional<std::string> crc_;
53 std::string partition_;
54 boost::optional<int64_t> version_;
69 const boost::optional<std::string>&
GetChecksum()
const {
return checksum_; }
86 this->checksum_ = std::move(value);
101 return compressed_data_size_;
113 return compressed_data_size_;
124 this->compressed_data_size_ = value;
155 this->data_handle_ = std::move(value);
169 const boost::optional<int64_t>&
GetDataSize()
const {
return data_size_; }
189 void SetDataSize(boost::optional<int64_t> value) { this->data_size_ = value; }
200 const boost::optional<std::string>&
GetCrc()
const {
return crc_; }
216 void SetCrc(boost::optional<std::string> value) {
217 this->crc_ = std::move(value);
246 void SetPartition(std::string value) { this->partition_ = std::move(value); }
258 const boost::optional<int64_t>&
GetVersion()
const {
return version_; }
277 void SetVersion(boost::optional<int64_t> value) { this->version_ = value; }
293 std::vector<Partition> partitions_;
315 this->partitions_ = std::move(value);
A model that represents a partition in a layer.
Definition: Partitions.h:38
const boost::optional< int64_t > & GetVersion() const
(Optional) Gets the version of the catalog when this partition was last changed.
Definition: Partitions.h:258
const boost::optional< int64_t > & GetDataSize() const
(Optional) Gets the uncompressed size of the partition data in bytes.
Definition: Partitions.h:169
boost::optional< int64_t > & GetMutableVersion()
(Optional) Gets a mutable reference to the version of the catalog when this partition was last change...
Definition: Partitions.h:268
const boost::optional< int64_t > & GetCompressedDataSize() const
(Optional) Gets the compressed size of the partition data in bytes when data compression is enabled.
Definition: Partitions.h:100
const std::string & GetPartition() const
Gets the partition key.
Definition: Partitions.h:230
std::string & GetMutableDataHandle()
Gets a mutable reference to the partition data handle.
Definition: Partitions.h:146
void SetCrc(boost::optional< std::string > value)
(Optional) Sets the partition crc.
Definition: Partitions.h:216
boost::optional< int64_t > & GetMutableCompressedDataSize()
(Optional) Gets a mutable reference to the compressed size of the partition data in bytes when data c...
Definition: Partitions.h:112
void SetPartition(std::string value)
Sets the partition key.
Definition: Partitions.h:246
void SetCompressedDataSize(boost::optional< int64_t > value)
(Optional) Sets the compressed size of the partition data.
Definition: Partitions.h:123
boost::optional< std::string > & GetMutableCrc()
(Optional) Gets a mutable reference to the partition crc.
Definition: Partitions.h:208
std::string & GetMutablePartition()
Gets a mutable reference to the partition key.
Definition: Partitions.h:238
boost::optional< int64_t > & GetMutableDataSize()
(Optional) Gets a mutable reference to the uncompressed size of the partition data in bytes.
Definition: Partitions.h:180
boost::optional< std::string > & GetMutableChecksum()
(Optional) Gets a mutable reference to the partition checksum.
Definition: Partitions.h:77
void SetDataHandle(std::string value)
Sets the partition data handle.
Definition: Partitions.h:154
const std::string & GetDataHandle() const
Get the partition data handle.
Definition: Partitions.h:138
void SetChecksum(boost::optional< std::string > value)
(Optional) Sets the partition checksum.
Definition: Partitions.h:85
const boost::optional< std::string > & GetCrc() const
Definition: Partitions.h:200
const boost::optional< std::string > & GetChecksum() const
(Optional) Gets the partition checksum.
Definition: Partitions.h:69
void SetVersion(boost::optional< int64_t > value)
(Optional) Sets the partition version.
Definition: Partitions.h:277
void SetDataSize(boost::optional< int64_t > value)
(Optional) Sets the uncompressed size of the partition data.
Definition: Partitions.h:189
A model that represents a collection of layer partitions.
Definition: Partitions.h:283
const std::vector< Partition > & GetPartitions() const
Gets the list of partitions for the given layer and layer version.
Definition: Partitions.h:301
std::vector< Partition > & GetMutablePartitions()
Gets a mutable reference to the list of partitions for the given layer and layer version.
Definition: Partitions.h:308
void SetPartitions(std::vector< Partition > value)
Sets the list of partitions.
Definition: Partitions.h:314
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24