mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
removed toString
This commit is contained in:
parent
3bea03529b
commit
9921fc6719
@ -31,9 +31,7 @@ struct MergeTreeIndexGranule
|
||||
virtual void serializeBinary(WriteBuffer & ostr) const = 0;
|
||||
virtual void deserializeBinary(ReadBuffer & istr) = 0;
|
||||
|
||||
virtual String toString() const = 0;
|
||||
virtual bool empty() const = 0;
|
||||
|
||||
virtual void update(const Block & block, size_t * pos, size_t limit) = 0;
|
||||
};
|
||||
|
||||
|
@ -52,20 +52,6 @@ void MergeTreeMinMaxGranule::deserializeBinary(ReadBuffer & istr)
|
||||
}
|
||||
}
|
||||
|
||||
String MergeTreeMinMaxGranule::toString() const
|
||||
{
|
||||
String res = "";
|
||||
|
||||
for (size_t i = 0; i < parallelogram.size(); ++i)
|
||||
{
|
||||
res += "["
|
||||
+ applyVisitor(FieldVisitorToString(), parallelogram[i].left) + ", "
|
||||
+ applyVisitor(FieldVisitorToString(), parallelogram[i].right) + "]";
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
void MergeTreeMinMaxGranule::update(const Block & block, size_t * pos, size_t limit)
|
||||
{
|
||||
size_t rows_read = std::min(limit, block.rows() - *pos);
|
||||
|
@ -20,9 +20,7 @@ struct MergeTreeMinMaxGranule : public MergeTreeIndexGranule
|
||||
void serializeBinary(WriteBuffer & ostr) const override;
|
||||
void deserializeBinary(ReadBuffer & istr) override;
|
||||
|
||||
String toString() const override;
|
||||
bool empty() const override { return parallelogram.empty(); }
|
||||
|
||||
void update(const Block & block, size_t * pos, size_t limit) override;
|
||||
|
||||
~MergeTreeMinMaxGranule() override = default;
|
||||
|
@ -80,29 +80,6 @@ void MergeTreeUniqueGranule::deserializeBinary(ReadBuffer & istr)
|
||||
set->insertFromBlock(block);
|
||||
}
|
||||
|
||||
String MergeTreeUniqueGranule::toString() const
|
||||
{
|
||||
String res;
|
||||
|
||||
const auto & columns = set->getSetElements();
|
||||
for (size_t i = 0; i < index.columns.size(); ++i)
|
||||
{
|
||||
const auto & column = columns[i];
|
||||
res += " [";
|
||||
for (size_t j = 0; j < column->size(); ++j)
|
||||
{
|
||||
if (j != 0)
|
||||
res += ", ";
|
||||
Field field;
|
||||
column->get(j, field);
|
||||
res += applyVisitor(FieldVisitorToString(), field);
|
||||
}
|
||||
res += "]\n";
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
void MergeTreeUniqueGranule::update(const Block & new_block, size_t * pos, size_t limit)
|
||||
{
|
||||
size_t rows_read = std::min(limit, new_block.rows() - *pos);
|
||||
|
@ -21,7 +21,6 @@ struct MergeTreeUniqueGranule : public MergeTreeIndexGranule
|
||||
void serializeBinary(WriteBuffer & ostr) const override;
|
||||
void deserializeBinary(ReadBuffer & istr) override;
|
||||
|
||||
String toString() const override;
|
||||
size_t size() const { return set->getTotalRowCount(); }
|
||||
bool empty() const override { return !size(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user