mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
25 lines
667 B
C++
25 lines
667 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <functional>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IBlockInputStream;
|
|
class IBlockOutputStream;
|
|
class Block;
|
|
|
|
/** Copies data from the InputStream into the OutputStream
|
|
* (for example, from the database to the console, etc.)
|
|
*/
|
|
void copyData(IBlockInputStream & from, IBlockOutputStream & to, std::atomic<bool> * is_cancelled = nullptr);
|
|
|
|
void copyData(IBlockInputStream & from, IBlockOutputStream & to, const std::function<bool()> & is_cancelled);
|
|
|
|
void copyData(IBlockInputStream & from, IBlockOutputStream & to, const std::function<bool()> & is_cancelled,
|
|
const std::function<void(const Block & block)> & progress);
|
|
|
|
}
|