iceberg-cpp
Loading...
Searching...
No Matches
rest_file_io.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#pragma once
21
24
25#include <memory>
26#include <unordered_map>
27#include <vector>
28
32#include "iceberg/file_io.h"
34#include "iceberg/result.h"
35
36namespace iceberg::rest {
37
41 const RestCatalogProperties& config);
42
45 const std::unordered_map<std::string, std::string>& catalog_config,
46 const std::unordered_map<std::string, std::string>& table_config,
47 const std::vector<StorageCredential>& storage_credentials);
48
49} // namespace iceberg::rest
RestCatalogProperties implementation for Iceberg REST API.
Configuration class for a REST Catalog.
Definition catalog_properties.h:39
Define the FileIO abstraction and file stream interfaces.
Define the FileIO registry.
Define symbol visibility macros for the REST catalog library.
REST catalog APIs.
Definition auth_manager.h:34
ICEBERG_REST_EXPORT Result< std::unique_ptr< FileIO > > MakeCatalogFileIO(const RestCatalogProperties &config)
Build the catalog FileIO: the configured io-impl, or the scheme-resolving FileIO by default.
ICEBERG_REST_EXPORT Result< std::unique_ptr< FileIO > > MakeTableFileIO(const std::unordered_map< std::string, std::string > &catalog_config, const std::unordered_map< std::string, std::string > &table_config, const std::vector< StorageCredential > &storage_credentials)
Build the configured table FileIO and apply storage credentials if present.
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.