mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
minor updates.
This commit is contained in:
parent
503556ae53
commit
71233e11a9
@ -24,20 +24,6 @@ namespace ErrorCodes
|
|||||||
class Arena;
|
class Arena;
|
||||||
class ColumnGathererStream;
|
class ColumnGathererStream;
|
||||||
|
|
||||||
struct ColumnSize
|
|
||||||
{
|
|
||||||
size_t marks = 0;
|
|
||||||
size_t data_compressed = 0;
|
|
||||||
size_t data_uncompressed = 0;
|
|
||||||
|
|
||||||
void add(const ColumnSize & other)
|
|
||||||
{
|
|
||||||
marks += other.marks;
|
|
||||||
data_compressed += other.data_compressed;
|
|
||||||
data_uncompressed += other.data_uncompressed;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Declares interface to store columns in memory.
|
/// Declares interface to store columns in memory.
|
||||||
class IColumn : public COW<IColumn>
|
class IColumn : public COW<IColumn>
|
||||||
{
|
{
|
||||||
|
@ -38,6 +38,19 @@ class AlterCommands;
|
|||||||
class MutationCommands;
|
class MutationCommands;
|
||||||
class PartitionCommands;
|
class PartitionCommands;
|
||||||
|
|
||||||
|
struct ColumnSize
|
||||||
|
{
|
||||||
|
size_t marks = 0;
|
||||||
|
size_t data_compressed = 0;
|
||||||
|
size_t data_uncompressed = 0;
|
||||||
|
|
||||||
|
void add(const ColumnSize & other)
|
||||||
|
{
|
||||||
|
marks += other.marks;
|
||||||
|
data_compressed += other.data_compressed;
|
||||||
|
data_uncompressed += other.data_uncompressed;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/** Storage. Describes the table. Responsible for
|
/** Storage. Describes the table. Responsible for
|
||||||
* - storage of the table data;
|
* - storage of the table data;
|
||||||
@ -82,6 +95,8 @@ public:
|
|||||||
/// Returns true if the storage supports deduplication of inserted data blocks.
|
/// Returns true if the storage supports deduplication of inserted data blocks.
|
||||||
virtual bool supportsDeduplication() const { return false; }
|
virtual bool supportsDeduplication() const { return false; }
|
||||||
|
|
||||||
|
/// Optional size information of each physical column.
|
||||||
|
/// Currently it's only used by the MergeTree family for query optimizations.
|
||||||
using ColumnSizeByName = std::unordered_map<std::string, ColumnSize>;
|
using ColumnSizeByName = std::unordered_map<std::string, ColumnSize>;
|
||||||
virtual ColumnSizeByName getColumnSizes() const { return {}; }
|
virtual ColumnSizeByName getColumnSizes() const { return {}; }
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
|
|
||||||
|
struct ColumnSize;
|
||||||
class MergeTreeData;
|
class MergeTreeData;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user