mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
21 lines
360 B
C++
21 lines
360 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <fcntl.h>
|
|
#include <sys/types.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IReadFileOperations
|
|
{
|
|
public:
|
|
virtual ~IReadFileOperations() = default;
|
|
virtual off_t seek(off_t off, int whence) = 0;
|
|
virtual off_t getPositionInFile() = 0;
|
|
virtual std::string getFileName() const noexcept = 0;
|
|
virtual int getFD() const noexcept = 0;
|
|
};
|
|
|
|
}
|