You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
clang format apply
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
@ -22,38 +22,36 @@
|
||||
#include "IDBDataFile.h"
|
||||
#include "SMComm.h"
|
||||
|
||||
namespace idbdatafile
|
||||
namespace idbdatafile
|
||||
{
|
||||
|
||||
class SMDataFile : public IDBDataFile
|
||||
{
|
||||
public:
|
||||
virtual ~SMDataFile();
|
||||
public:
|
||||
virtual ~SMDataFile();
|
||||
|
||||
ssize_t pread(void* ptr, off64_t offset, size_t count);
|
||||
ssize_t read(void* ptr, size_t count);
|
||||
ssize_t write(const void* ptr, size_t count);
|
||||
int seek(off64_t offset, int whence);
|
||||
int truncate(off64_t length);
|
||||
int fallocate(int mode, off64_t offset, off64_t length);
|
||||
off64_t size();
|
||||
off64_t tell();
|
||||
int flush();
|
||||
time_t mtime();
|
||||
int close();
|
||||
|
||||
// for testing only
|
||||
SMDataFile(const char *fname, int openmode, size_t fake_size);
|
||||
|
||||
private:
|
||||
SMDataFile();
|
||||
SMDataFile(const char *fname, int openmode, const struct stat &);
|
||||
off64_t position;
|
||||
int openmode;
|
||||
SMComm *comm;
|
||||
|
||||
friend class SMFileFactory;
|
||||
ssize_t pread(void* ptr, off64_t offset, size_t count);
|
||||
ssize_t read(void* ptr, size_t count);
|
||||
ssize_t write(const void* ptr, size_t count);
|
||||
int seek(off64_t offset, int whence);
|
||||
int truncate(off64_t length);
|
||||
int fallocate(int mode, off64_t offset, off64_t length);
|
||||
off64_t size();
|
||||
off64_t tell();
|
||||
int flush();
|
||||
time_t mtime();
|
||||
int close();
|
||||
|
||||
// for testing only
|
||||
SMDataFile(const char* fname, int openmode, size_t fake_size);
|
||||
|
||||
private:
|
||||
SMDataFile();
|
||||
SMDataFile(const char* fname, int openmode, const struct stat&);
|
||||
off64_t position;
|
||||
int openmode;
|
||||
SMComm* comm;
|
||||
|
||||
friend class SMFileFactory;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
} // namespace idbdatafile
|
||||
|
Reference in New Issue
Block a user