blob: eec63bc05bbc421734448fe72876642f4eb3e9d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
#include <Columns/IColumnDummy.h>
namespace DB
{
class ColumnNothing final : public COWHelper<IColumnDummy, ColumnNothing>
{
private:
friend class COWHelper<IColumnDummy, ColumnNothing>;
explicit 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_); }
TypeIndex getDataType() const override { return TypeIndex::Nothing; }
bool canBeInsideNullable() const override { return true; }
bool structureEquals(const IColumn & rhs) const override
{
return typeid(rhs) == typeid(ColumnNothing);
}
};
}
|