ClickHouse/dbms/Storages/IndicesDescription.h

28 lines
440 B
C++
Raw Normal View History

2019-01-20 17:49:53 +00:00
#pragma once
2019-10-07 14:18:18 +00:00
#include <Core/Types.h>
2019-01-20 17:49:53 +00:00
2019-10-07 14:18:18 +00:00
#include <memory>
#include <vector>
2019-01-20 17:49:53 +00:00
namespace DB
{
2019-10-07 14:18:18 +00:00
class ASTIndexDeclaration;
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-10-07 14:18:18 +00:00
bool empty() const;
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
}