mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <Storages/ExternalDataSourceConfiguration.h>
|
|
#include <Storages/IStorage.h>
|
|
#include <Storages/MeiliSearch/MeiliSearchConnection.h>
|
|
|
|
namespace DB
|
|
{
|
|
class StorageMeiliSearch final : public IStorage
|
|
{
|
|
public:
|
|
StorageMeiliSearch(
|
|
const StorageID & table_id,
|
|
const MeiliSearchConfiguration & config_,
|
|
const ColumnsDescription & columns_,
|
|
const ConstraintsDescription & constraints_,
|
|
const String & comment);
|
|
|
|
String getName() const override { return "MeiliSearch"; }
|
|
|
|
Pipe read(
|
|
const Names & column_names,
|
|
const StorageSnapshotPtr & storage_snapshot,
|
|
SelectQueryInfo & query_info,
|
|
ContextPtr context,
|
|
QueryProcessingStage::Enum processed_stage,
|
|
size_t max_block_size,
|
|
unsigned num_streams) override;
|
|
|
|
SinkToStoragePtr write(const ASTPtr & query, const StorageMetadataPtr & metadata_snapshot, ContextPtr local_context) override;
|
|
|
|
MeiliSearchConfiguration static getConfiguration(ASTs engine_args, ContextPtr context);
|
|
|
|
private:
|
|
MeiliSearchConfiguration config;
|
|
|
|
Poco::Logger * log;
|
|
};
|
|
|
|
}
|