ClickHouse/dbms/include/DB/Parsers/ASTAsterisk.h

28 lines
558 B
C++
Raw Normal View History

2011-08-28 08:50:27 +00:00
#pragma once
#include <DB/Parsers/IAST.h>
namespace DB
{
/** Звёздочка.
*/
class ASTAsterisk : public IAST
{
public:
2014-12-17 15:26:24 +00:00
ASTAsterisk() = default;
2011-08-28 08:50:27 +00:00
ASTAsterisk(StringRange range_) : IAST(range_) {}
2014-12-17 15:26:24 +00:00
String getID() const override { return "Asterisk"; }
ASTPtr clone() const override { return std::make_shared<ASTAsterisk>(*this); }
2014-12-17 15:26:24 +00:00
String getColumnName() const override { return "*"; }
protected:
void formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
{
settings.ostr << "*";
}
2011-08-28 08:50:27 +00:00
};
}