ClickHouse/dbms/Columns/ColumnNothing.h
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

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);
}
};
}