mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Tiny IStorage refactoring
This commit is contained in:
parent
ceac649c01
commit
84c93a6b02
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user