ClickHouse/dbms/src/Interpreters/PreparedSets.h

21 lines
335 B
C++
Raw Normal View History

2019-01-18 16:30:35 +00:00
#pragma once
#include <Parsers/IAST.h>
#include <memory>
#include <unordered_map>
namespace DB
{
struct ASTHalfHash
{
UInt64 operator()(const IAST::Hash & ast_hash) const { return ast_hash.first; }
};
class Set;
using SetPtr = std::shared_ptr<Set>;
using PreparedSets = std::unordered_map<IAST::Hash, SetPtr, ASTHalfHash>;
}