mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
42 lines
870 B
C++
42 lines
870 B
C++
#pragma once
|
|
|
|
#include <base/types.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct ShardPartition;
|
|
|
|
struct ShardPartitionPiece
|
|
{
|
|
ShardPartitionPiece(ShardPartition & parent, size_t current_piece_number_, bool is_present_piece_);
|
|
|
|
String getPartitionPiecePath() const;
|
|
|
|
String getPartitionPieceCleanStartPath() const;
|
|
|
|
String getPartitionPieceIsDirtyPath() const;
|
|
|
|
String getPartitionPieceIsCleanedPath() const;
|
|
|
|
String getPartitionPieceActiveWorkersPath() const;
|
|
|
|
String getActiveWorkerPath() const ;
|
|
|
|
/// On what shards do we have current partition.
|
|
String getPartitionPieceShardsPath() const;
|
|
|
|
String getShardStatusPath() const;
|
|
|
|
String getPartitionPieceCleanerPath() const;
|
|
|
|
bool is_absent_piece;
|
|
const size_t current_piece_number;
|
|
|
|
ShardPartition & shard_partition;
|
|
};
|
|
|
|
using PartitionPieces = std::vector<ShardPartitionPiece>;
|
|
|
|
}
|