mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
29 lines
568 B
C++
29 lines
568 B
C++
#pragma once
|
|
|
|
#include <Columns/IColumnDummy.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ColumnNothing final : public COWPtrHelper<IColumnDummy, ColumnNothing>
|
|
{
|
|
private:
|
|
friend class COWPtrHelper<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; }
|
|
};
|
|
|
|
}
|