Skip to content

Commit 2fa2e4d

Browse files
committed
style: Improve BuildTable signature readability
1 parent 3d617a8 commit 2fa2e4d

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/iceberg/catalog.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,15 +176,6 @@ class ICEBERG_EXPORT Catalog {
176176
virtual Result<std::shared_ptr<Table>> RegisterTable(
177177
const TableIdentifier& identifier, const std::string& metadata_file_location) = 0;
178178

179-
/// \brief Instantiate a builder to either create a table or start a create/replace
180-
/// transaction
181-
///
182-
/// \param identifier a table identifier
183-
/// \param schema a schema
184-
/// \return the builder to create a table or start a create/replace transaction
185-
virtual std::unique_ptr<class TableBuilder> BuildTable(
186-
const TableIdentifier& identifier, const Schema& schema) const = 0;
187-
188179
/// \brief A builder used to create valid tables or start create/replace transactions
189180
class TableBuilder {
190181
public:
@@ -233,6 +224,16 @@ class ICEBERG_EXPORT Catalog {
233224
/// \return the Transaction to create the table
234225
virtual std::unique_ptr<Transaction> StageCreate() = 0;
235226
};
227+
228+
/// \brief Instantiate a builder to either create a table or start a create/replace
229+
/// transaction
230+
///
231+
/// \param identifier a table identifier
232+
/// \param schema a schema
233+
/// \return the builder to create a table or start a create/replace transaction
234+
virtual std::unique_ptr<class TableBuilder> BuildTable(
235+
const TableIdentifier& identifier, const Schema& schema) const = 0;
236+
236237
};
237238

238239
} // namespace iceberg

src/iceberg/catalog/in_memory_catalog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ Result<std::shared_ptr<Table>> InMemoryCatalog::RegisterTable(
441441
return LoadTable(identifier);
442442
}
443443

444-
std::unique_ptr<TableBuilder> InMemoryCatalog::BuildTable(
444+
std::unique_ptr<iceberg::Catalog::TableBuilder> InMemoryCatalog::BuildTable(
445445
const TableIdentifier& identifier, const Schema& schema) const {
446446
throw IcebergError("not implemented");
447447
}

src/iceberg/catalog/in_memory_catalog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class ICEBERG_EXPORT InMemoryCatalog
9090
const TableIdentifier& identifier,
9191
const std::string& metadata_file_location) override;
9292

93-
std::unique_ptr<iceberg::TableBuilder> BuildTable(const TableIdentifier& identifier,
93+
std::unique_ptr<iceberg::Catalog::TableBuilder> BuildTable(const TableIdentifier& identifier,
9494
const Schema& schema) const override;
9595

9696
private:

0 commit comments

Comments
 (0)