ClickHouse/src/Common/FieldVisitorHash.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.4 KiB
C++
Raw Normal View History

2021-06-14 04:13:35 +00:00
#pragma once
#include <Common/FieldVisitors.h>
class SipHash;
namespace DB
{
/** Updates SipHash by type and value of Field */
class FieldVisitorHash : public StaticVisitor<>
{
private:
SipHash & hash;
public:
explicit FieldVisitorHash(SipHash & hash_);
2021-06-14 04:13:35 +00:00
void operator() (const Null & x) const;
void operator() (const UInt64 & x) const;
void operator() (const UInt128 & x) const;
void operator() (const UInt256 & x) const;
void operator() (const Int64 & x) const;
void operator() (const Int128 & x) const;
void operator() (const Int256 & x) const;
void operator() (const UUID & x) const;
void operator() (const IPv4 & x) const;
void operator() (const IPv6 & x) const;
2021-06-14 04:13:35 +00:00
void operator() (const Float64 & x) const;
void operator() (const String & x) const;
void operator() (const Array & x) const;
void operator() (const Tuple & x) const;
void operator() (const Map & x) const;
2021-08-20 21:11:22 +00:00
void operator() (const Object & x) const;
2021-06-14 04:13:35 +00:00
void operator() (const DecimalField<Decimal32> & x) const;
void operator() (const DecimalField<Decimal64> & x) const;
void operator() (const DecimalField<Decimal128> & x) const;
void operator() (const DecimalField<Decimal256> & x) const;
void operator() (const AggregateFunctionStateData & x) const;
2023-02-03 16:07:02 +00:00
void operator() (const CustomType & x) const;
void operator() (const bool & x) const;
2021-06-14 04:13:35 +00:00
};
}