Move methods to .cpp

This commit is contained in:
Alexey Milovidov 2024-02-17 06:20:44 +01:00
parent fce3a8cafc
commit e9cf92245f
2 changed files with 15 additions and 2 deletions

View File

@ -342,6 +342,19 @@ IMergeTreeDataPart::~IMergeTreeDataPart()
decrementTypeMetric(part_type);
}
const IMergeTreeDataPart::Index & IMergeTreeDataPart::getIndex() const
{
return index;
}
void IMergeTreeDataPart::setIndex(Columns index_)
{
index = std::move(index_);
}
void IMergeTreeDataPart::setName(const String & new_name)
{
mutable_name = new_name;

View File

@ -360,8 +360,8 @@ public:
/// Version of part metadata (columns, pk and so on). Managed properly only for replicated merge tree.
int32_t metadata_version;
const Index & getIndex() const { return index; }
void setIndex(Columns index_) { index = std::move(index_); }
const Index & getIndex() const;
void setIndex(Columns index_);
/// For data in RAM ('index')
UInt64 getIndexSizeInBytes() const;