mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
26 lines
464 B
C++
26 lines
464 B
C++
#include <IO/WriteBufferFromString.h>
|
|
#include <IO/Operators.h>
|
|
#include <Columns/IColumn.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
String IColumn::dumpStructure() const
|
|
{
|
|
WriteBufferFromOwnString res;
|
|
res << getFamilyName() << "(size = " << size();
|
|
|
|
ColumnCallback callback = [&](ColumnPtr & subcolumn)
|
|
{
|
|
res << ", " << subcolumn->dumpStructure();
|
|
};
|
|
|
|
const_cast<IColumn*>(this)->forEachSubcolumn(callback);
|
|
|
|
res << ")";
|
|
return res.str();
|
|
}
|
|
|
|
}
|