mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
37 lines
643 B
C++
37 lines
643 B
C++
#pragma once
|
|
#include <Core/Types.h>
|
|
#include <IO/ReadBuffer.h>
|
|
#include <IO/WriteBuffer.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Lets you know where to send requests to get to the replica.
|
|
|
|
struct ReplicatedMergeTreeAddress
|
|
{
|
|
String host;
|
|
UInt16 replication_port;
|
|
UInt16 queries_port;
|
|
String database;
|
|
String table;
|
|
String scheme;
|
|
|
|
ReplicatedMergeTreeAddress() = default;
|
|
explicit ReplicatedMergeTreeAddress(const String & str)
|
|
{
|
|
fromString(str);
|
|
}
|
|
|
|
void writeText(WriteBuffer & out) const;
|
|
|
|
void readText(ReadBuffer & in);
|
|
|
|
String toString() const;
|
|
|
|
void fromString(const String & str);
|
|
};
|
|
|
|
}
|