Repository: ClickHouse/ClickHouse
File: src/Core/YTsaurus/YTsaurusClient.h (C/C++)

Code before:
{
    STATIC_TABLE = 0,
    DYNAMIC_TABLE,
    ANOTHER,
};

class YTsaurusClient : private boost::noncopyable
{
public:
    using URI = Poco::URI;
    static const uint16_t HTTP_PROXY_DEFAULT_PORT = 80;

    struct ConnectionInfo
    {
        std::vector<String> http_proxy_urls;
        String oauth_token;
        String api_version = "v3";
        bool encode_utf8 = false;
        bool enable_heavy_proxy_redirection = true;
    };

    explicit YTsaurusClient(ContextPtr context_, const ConnectionInfo & connection_info_);

    const ConnectionInfo & getConnectionInfo() { return connection_info; }

    ReadBufferPtr readTable(const String & cypress_path, const std::pair<size_t, size_t>& rows_range);

    ReadBufferPtr lookupRows(const String & cypress_path, const Block & lookup_block_input);

    ReadBufferPtr selectRows(const String & cypress_path, const String& column_names_str);

    ReadBufferPtr selectRows(const String & cypress_path, const ColumnsWithTypeAndName& columns);

    YTsaurusNodeType getNodeType(const String & cypress_path);

    String startTx(size_t timeout_ms);

    void commitTx(const String & transaction_id);

    String getNodeIdFromLock(const String & lock_id);

    String lock(const String& cypress_path, const String & transaction_id);

    size_t getTableNumberOfRows(const String& table_path);

    struct SchemaDescription
    {
        bool is_strict;
        std::unordered_map<String, DataTypePtr> columns;
    };


Review comment (suggestion):
```suggestion
    ReadBufferPtr readTable(const String & cypress_path, const std::pair<size_t, size_t> & rows_range);
```

Code after:
{
    STATIC_TABLE = 0,
    DYNAMIC_TABLE,
    ANOTHER,
};

class YTsaurusClient : private boost::noncopyable
{
public:
    using URI = Poco::URI;
    static const uint16_t HTTP_PROXY_DEFAULT_PORT = 80;

    struct ConnectionInfo
    {
        std::vector<String> http_proxy_urls;
        String oauth_token;
        String api_version = "v3";
        bool encode_utf8 = false;
        bool enable_heavy_proxy_redirection = true;
    };

    explicit YTsaurusClient(ContextPtr context_, const ConnectionInfo & connection_info_);

    YTsaurusClient(const YTsaurusClient & other);

    const ConnectionInfo & getConnectionInfo() { return connection_info; }

    ReadBufferPtr readTable(const String & cypress_path, const std::pair<size_t, size_t> & rows_range);

    ReadBufferPtr lookupRows(const String & cypress_path, const Block & lookup_block_input);

    ReadBufferPtr selectRows(const String & cypress_path, const String& column_names_str);

    ReadBufferPtr selectRows(const String & cypress_path, const ColumnsWithTypeAndName& columns);

    YTsaurusNodeType getNodeType(const String & cypress_path);

    String startTx(size_t timeout_ms);

    void commitTx(const String & transaction_id);

    String getNodeIdFromLock(const String & lock_id);

    String lock(const String & cypress_path, const String & transaction_id);

    size_t getTableNumberOfRows(const String& table_path);

    struct SchemaDescription
    {
        bool is_strict;
        std::unordered_map<String, DataTypePtr> columns;