fixed code style

This commit is contained in:
lgbo-ustc 2021-12-06 16:51:49 +08:00 committed by liangjiabiao
parent ddac2a33bd
commit 5913d67553
3 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ public:
{
}
virtual ~RemoteFileMetaDataBase();
virtual String getClassName() const = 0; //class name
virtual String getName() const = 0; //class name
// methods for basic information
inline String getSchema() const { return schema; }
inline String getCluster() const { return cluster; }

View File

@ -142,7 +142,6 @@ public:
static std::unique_ptr<ReadBuffer> create(ContextPtr contex, RemoteFileMetaDataBasePtr remote_file_meta_data, std::unique_ptr<ReadBuffer> read_buffer);
bool nextImpl() override;
inline bool seekable() { return file_buffer && remote_file_size > 0; }
off_t seek(off_t off, int whence) override;
off_t getPosition() override;
std::optional<size_t> getTotalSize() override { return remote_file_size; }

View File

@ -14,7 +14,7 @@ public:
RemoteFileMetaDataBase(schema_, cluster_, remote_path_, file_size_, last_modification_timestamp_){}
~HiveFileMetaData() override;
String getClassName() const override { return "HiveFileMetaData"; }
String getName() const override { return "HiveFileMetaData"; }
String toString() const override;
bool fromString(const String &buf) override;