mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
34 lines
840 B
C++
34 lines
840 B
C++
#pragma once
|
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
#include <Storages/IStorage.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/* One block storage used for values table function
|
|
* It's structure is similar to IStorageSystemOneBlock
|
|
*/
|
|
class StorageValues final : public ext::shared_ptr_helper<StorageValues>, public IStorage
|
|
{
|
|
friend struct ext::shared_ptr_helper<StorageValues>;
|
|
public:
|
|
std::string getName() const override { return "Values"; }
|
|
|
|
Pipes read(
|
|
const Names & column_names,
|
|
const SelectQueryInfo & query_info,
|
|
const Context & context,
|
|
QueryProcessingStage::Enum processed_stage,
|
|
size_t max_block_size,
|
|
unsigned num_streams) override;
|
|
|
|
private:
|
|
Block res_block;
|
|
|
|
protected:
|
|
StorageValues(const StorageID & table_id_, const ColumnsDescription & columns_, const Block & res_block_);
|
|
};
|
|
|
|
}
|