20 #include <kvikio/remote_handle.hpp>
33 std::optional<std::string> _username;
53 std::string remote_file_path,
54 std::optional<std::string> username = std::nullopt);
58 std::string
str()
const override;
Representation of a curl easy handle pointer and its operations.
Abstract base class for remote endpoints.
A remote endpoint for Apache Hadoop WebHDFS.
static bool is_url_valid(std::string const &url) noexcept
Whether the given URL is valid for the WebHDFS endpoints.
WebHdfsEndpoint(std::string host, std::string port, std::string remote_file_path, std::optional< std::string > username=std::nullopt)
Create an WebHDFS endpoint from the host, port, file path and optionally username.
std::string str() const override
Get a description of this remote point instance.
std::size_t get_file_size() override
Get the size of the remote file.
WebHdfsEndpoint(std::string url)
Create an WebHDFS endpoint from a url.
void setup_range_request(CurlHandle &curl, std::size_t file_offset, std::size_t size) override
Set up the range request in order to read part of a file given the file offset and read size.
void setopt(CurlHandle &curl) override
Set needed connection options on a curl handle.