mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Add stubs
This commit is contained in:
parent
3175caa1c0
commit
a82f4925ec
0
contrib/cassandra-cmake/CMakeLists.txt
Normal file
0
contrib/cassandra-cmake/CMakeLists.txt
Normal file
@ -427,6 +427,7 @@ namespace ErrorCodes
|
||||
extern const int BAD_TTL_EXPRESSION = 450;
|
||||
extern const int BAD_TTL_FILE = 451;
|
||||
extern const int SETTING_CONSTRAINT_VIOLATION = 452;
|
||||
extern const int CASSANDRA_INTERNAL_ERROR = 453;
|
||||
|
||||
extern const int KEEPER_EXCEPTION = 999;
|
||||
extern const int POCO_EXCEPTION = 1000;
|
||||
|
@ -17,7 +17,7 @@ namespace DB
|
||||
Block & sample_block,
|
||||
const Context & /* context */) -> DictionarySourcePtr {
|
||||
#if USE_CASSANDRA
|
||||
return std::make_unique<CassandraDictionarySource>(dict_struct, config, config_prefix + ".cassandra", sample_block);
|
||||
return std::make_unique<CassandraDictionarySource>(dict_struct, config, config_prefix + ".cassandra", sample_block);
|
||||
#else
|
||||
(void)dict_struct;
|
||||
(void)config;
|
||||
@ -40,7 +40,8 @@ namespace DB
|
||||
|
||||
namespace DB
|
||||
{
|
||||
namespace ErrorCodes {
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int UNSUPPORTED_METHOD;
|
||||
extern const int WRONG_PASSWORD;
|
||||
}
|
||||
|
@ -44,9 +44,15 @@ public:
|
||||
|
||||
DictionarySourcePtr clone() const override { return std::make_unique<CassandraDictionarySource>(*this); }
|
||||
|
||||
BlockInputStreamPtr loadIds(const std::vector<UInt64> & ids) override;
|
||||
BlockInputStreamPtr loadIds(const std::vector<UInt64> & /* ids */) override
|
||||
{
|
||||
throw Exception{"Method loadIds is not implemented yet", ErrorCodes::NOT_IMPLEMENTED};
|
||||
}
|
||||
|
||||
BlockInputStreamPtr loadKeys(const Columns & key_columns, const std::vector<size_t> & requested_rows) override;
|
||||
BlockInputStreamPtr loadKeys(const Columns & /* key_columns */, const std::vector<size_t> & /* requested_rows */) override
|
||||
{
|
||||
throw Exception{"Method loadKeys is not implemented yet", ErrorCodes::NOT_IMPLEMENTED};
|
||||
}
|
||||
|
||||
BlockInputStreamPtr loadUpdatedAll() override
|
||||
{
|
||||
@ -56,7 +62,7 @@ public:
|
||||
std::string toString() const override;
|
||||
|
||||
private:
|
||||
static std::string toConnectionString(const std::string& host, const UInt16 port);
|
||||
static std::string toConnectionString(const std::string & host, const UInt16 port);
|
||||
|
||||
const DictionaryStructure dict_struct;
|
||||
const std::string host;
|
||||
|
Loading…
Reference in New Issue
Block a user