26#include <olp/core/porting/optional.h>
27#include <olp/dataservice/read/DataServiceReadApi.h>
30namespace dataservice {
47 porting::optional<std::string> checksum_;
48 porting::optional<int64_t> compressed_data_size_;
49 std::string data_handle_;
50 porting::optional<int64_t> data_size_;
51 porting::optional<std::string> crc_;
52 std::string partition_;
53 porting::optional<int64_t> version_;
87 this->checksum_ = std::move(value);
102 return compressed_data_size_;
114 return compressed_data_size_;
125 this->compressed_data_size_ = value;
156 this->data_handle_ = std::move(value);
170 const porting::optional<int64_t>&
GetDataSize()
const {
return data_size_; }
191 this->data_size_ = value;
203 const porting::optional<std::string>&
GetCrc()
const {
return crc_; }
219 void SetCrc(porting::optional<std::string> value) {
220 this->crc_ = std::move(value);
249 void SetPartition(std::string value) { this->partition_ = std::move(value); }
261 const porting::optional<int64_t>&
GetVersion()
const {
return version_; }
280 void SetVersion(porting::optional<int64_t> value) { this->version_ = value; }
296 std::vector<Partition> partitions_;
318 this->partitions_ = std::move(value);
A model that represents a partition in a layer.
Definition Partitions.h:37
const porting::optional< int64_t > & GetDataSize() const
(Optional) Gets the uncompressed size of the partition data in bytes.
Definition Partitions.h:170
const porting::optional< int64_t > & GetCompressedDataSize() const
(Optional) Gets the compressed size of the partition data in bytes when data compression is enabled.
Definition Partitions.h:101
void SetDataSize(porting::optional< int64_t > value)
(Optional) Sets the uncompressed size of the partition data.
Definition Partitions.h:190
void SetPartition(std::string value)
Sets the partition key.
Definition Partitions.h:249
const porting::optional< std::string > & GetCrc() const
Definition Partitions.h:203
void SetCompressedDataSize(porting::optional< int64_t > value)
(Optional) Sets the compressed size of the partition data.
Definition Partitions.h:124
const std::string & GetDataHandle() const
Get the partition data handle.
Definition Partitions.h:139
void SetCrc(porting::optional< std::string > value)
(Optional) Sets the partition crc.
Definition Partitions.h:219
std::string & GetMutableDataHandle()
Gets a mutable reference to the partition data handle.
Definition Partitions.h:147
porting::optional< int64_t > & GetMutableDataSize()
(Optional) Gets a mutable reference to the uncompressed size of the partition data in bytes.
Definition Partitions.h:181
porting::optional< std::string > & GetMutableCrc()
(Optional) Gets a mutable reference to the partition crc.
Definition Partitions.h:211
const porting::optional< std::string > & GetChecksum() const
(Optional) Gets the partition checksum.
Definition Partitions.h:68
void SetDataHandle(std::string value)
Sets the partition data handle.
Definition Partitions.h:155
const porting::optional< int64_t > & GetVersion() const
(Optional) Gets the version of the catalog when this partition was last changed.
Definition Partitions.h:261
porting::optional< std::string > & GetMutableChecksum()
(Optional) Gets a mutable reference to the partition checksum.
Definition Partitions.h:78
const std::string & GetPartition() const
Gets the partition key.
Definition Partitions.h:233
porting::optional< int64_t > & GetMutableVersion()
(Optional) Gets a mutable reference to the version of the catalog when this partition was last change...
Definition Partitions.h:271
std::string & GetMutablePartition()
Gets a mutable reference to the partition key.
Definition Partitions.h:241
void SetVersion(porting::optional< int64_t > value)
(Optional) Sets the partition version.
Definition Partitions.h:280
porting::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:113
void SetChecksum(porting::optional< std::string > value)
(Optional) Sets the partition checksum.
Definition Partitions.h:86
A model that represents a collection of layer partitions.
Definition Partitions.h:286
std::vector< Partition > & GetMutablePartitions()
Gets a mutable reference to the list of partitions for the given layer and layer version.
Definition Partitions.h:311
const std::vector< Partition > & GetPartitions() const
Gets the list of partitions for the given layer and layer version.
Definition Partitions.h:304
void SetPartitions(std::vector< Partition > value)
Sets the list of partitions.
Definition Partitions.h:317
Rules all the other namespaces.
Definition AppleSignInProperties.h:24