From 5913d67553368a92e29b1cd1df9dae22e5187ff4 Mon Sep 17 00:00:00 2001 From: lgbo-ustc Date: Mon, 6 Dec 2021 16:51:49 +0800 Subject: [PATCH] fixed code style --- src/IO/RemoteFileMetaDataBase.h | 2 +- src/IO/RemoteReadBufferCache.h | 1 - src/Storages/Hive/HiveFileMetaData.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/IO/RemoteFileMetaDataBase.h b/src/IO/RemoteFileMetaDataBase.h index 09127cf56e8..85f29ba68ab 100644 --- a/src/IO/RemoteFileMetaDataBase.h +++ b/src/IO/RemoteFileMetaDataBase.h @@ -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; } diff --git a/src/IO/RemoteReadBufferCache.h b/src/IO/RemoteReadBufferCache.h index 8f524c236c2..276b82312b0 100644 --- a/src/IO/RemoteReadBufferCache.h +++ b/src/IO/RemoteReadBufferCache.h @@ -142,7 +142,6 @@ public: static std::unique_ptr create(ContextPtr contex, RemoteFileMetaDataBasePtr remote_file_meta_data, std::unique_ptr 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 getTotalSize() override { return remote_file_size; } diff --git a/src/Storages/Hive/HiveFileMetaData.h b/src/Storages/Hive/HiveFileMetaData.h index 52890b93333..be48f004dcf 100644 --- a/src/Storages/Hive/HiveFileMetaData.h +++ b/src/Storages/Hive/HiveFileMetaData.h @@ -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;