mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
24 lines
492 B
C++
24 lines
492 B
C++
#pragma once
|
|
|
|
#include <IO/ReadBufferFromFileBase.h>
|
|
#include <IO/ReadSettings.h>
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Create an object to read data from a file.
|
|
* estimated_size - the number of bytes to read
|
|
*/
|
|
std::unique_ptr<ReadBufferFromFileBase> createReadBufferFromFileBase(
|
|
const std::string & filename,
|
|
const ReadSettings & settings,
|
|
size_t estimated_size,
|
|
int flags_ = -1,
|
|
char * existing_memory = nullptr,
|
|
size_t alignment = 0);
|
|
|
|
}
|