Tiny IStorage refactoring

This commit is contained in:
Azat Khuzhin 2020-07-11 15:17:06 +03:00
parent ceac649c01
commit 84c93a6b02

View File

@ -443,10 +443,7 @@ public:
/// - For total_rows column in system.tables /// - For total_rows column in system.tables
/// ///
/// Does takes underlying Storage (if any) into account. /// Does takes underlying Storage (if any) into account.
virtual std::optional<UInt64> totalRows() const virtual std::optional<UInt64> totalRows() const { return {}; }
{
return {};
}
/// If it is possible to quickly determine exact number of bytes for the table on storage: /// If it is possible to quickly determine exact number of bytes for the table on storage:
/// - memory (approximated, resident) /// - memory (approximated, resident)
@ -461,10 +458,7 @@ public:
/// Memory part should be estimated as a resident memory size. /// Memory part should be estimated as a resident memory size.
/// In particular, alloctedBytes() is preferable over bytes() /// In particular, alloctedBytes() is preferable over bytes()
/// when considering in-memory blocks. /// when considering in-memory blocks.
virtual std::optional<UInt64> totalBytes() const virtual std::optional<UInt64> totalBytes() const { return {}; }
{
return {};
}
private: private:
/// Lock required for alter queries (lockForAlter). Always taken for write /// Lock required for alter queries (lockForAlter). Always taken for write