ClickHouse/dbms/src/Storages/IndicesDescription.h

25 lines
421 B
C++
Raw Normal View History

2019-01-20 17:49:53 +00:00
#pragma once
#include <Parsers/ASTIndexDeclaration.h>
namespace DB
{
2019-02-06 07:51:35 +00:00
using IndicesASTs = std::vector<std::shared_ptr<ASTIndexDeclaration>>;
2019-01-20 17:49:53 +00:00
struct IndicesDescription
{
2019-02-06 07:51:35 +00:00
IndicesASTs indices;
2019-01-20 17:49:53 +00:00
IndicesDescription() = default;
2019-02-12 17:54:52 +00:00
bool empty() const { return indices.empty(); }
2019-05-09 14:25:18 +00:00
bool has(const String & name) const;
2019-01-20 17:49:53 +00:00
2019-05-09 14:25:18 +00:00
String toString() const;
2019-01-20 17:49:53 +00:00
static IndicesDescription parse(const String & str);
};
2019-01-26 06:26:49 +00:00
}