mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
34 lines
691 B
C++
34 lines
691 B
C++
#pragma once
|
|
|
|
#include <Columns/IColumnDummy.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ColumnNothing final : public COWHelper<IColumnDummy, ColumnNothing>
|
|
{
|
|
private:
|
|
friend class COWHelper<IColumnDummy, ColumnNothing>;
|
|
|
|
ColumnNothing(size_t s_)
|
|
{
|
|
s = s_;
|
|
}
|
|
|
|
ColumnNothing(const ColumnNothing &) = default;
|
|
|
|
public:
|
|
const char * getFamilyName() const override { return "Nothing"; }
|
|
MutableColumnPtr cloneDummy(size_t s_) const override { return ColumnNothing::create(s_); }
|
|
|
|
bool canBeInsideNullable() const override { return true; }
|
|
|
|
bool structureEquals(const IColumn & rhs) const override
|
|
{
|
|
return typeid(rhs) == typeid(ColumnNothing);
|
|
}
|
|
};
|
|
|
|
}
|