@@ -184,64 +184,6 @@ class ICEBERG_EXPORT Catalog {
184184 // / \return a Table instance or ErrorKind::kAlreadyExists if the table already exists
185185 virtual Result<std::shared_ptr<Table>> RegisterTable (
186186 const TableIdentifier& identifier, const std::string& metadata_file_location) = 0;
187-
188- // / \brief A builder used to create valid tables or start create/replace transactions
189- class TableBuilder {
190- public:
191- virtual ~TableBuilder () = default ;
192-
193- // / \brief Sets a partition spec for the table
194- // /
195- // / \param spec a partition spec
196- // / \return this for method chaining
197- virtual TableBuilder& WithPartitionSpec (const PartitionSpec& spec) = 0;
198-
199- // / \brief Sets a sort order for the table
200- // /
201- // / \param sort_order a sort order
202- // / \return this for method chaining
203- virtual TableBuilder& WithSortOrder (const SortOrder& sort_order) = 0;
204-
205- // / \brief Sets a location for the table
206- // /
207- // / \param location a location
208- // / \return this for method chaining
209- virtual TableBuilder& WithLocation (const std::string& location) = 0;
210-
211- // / \brief Adds key/value properties to the table
212- // /
213- // / \param properties key/value properties
214- // / \return this for method chaining
215- virtual TableBuilder& WithProperties (
216- const std::unordered_map<std::string, std::string>& properties) = 0;
217-
218- // / \brief Adds a key/value property to the table
219- // /
220- // / \param key a key
221- // / \param value a value
222- // / \return this for method chaining
223- virtual TableBuilder& WithProperty (const std::string& key,
224- const std::string& value) = 0;
225-
226- // / \brief Creates the table
227- // /
228- // / \return the created table
229- virtual std::unique_ptr<Table> Create () = 0;
230-
231- // / \brief Starts a transaction to create the table
232- // /
233- // / \return the Transaction to create the table
234- virtual std::unique_ptr<Transaction> StageCreate () = 0;
235- };
236-
237- // / \brief Instantiate a builder to either create a table or start a create/replace
238- // / transaction
239- // /
240- // / \param identifier a table identifier
241- // / \param schema a schema
242- // / \return the builder to create a table or start a create/replace transaction
243- virtual std::unique_ptr<TableBuilder> BuildTable (const TableIdentifier& identifier,
244- const Schema& schema) const = 0;
245187};
246188
247189} // namespace iceberg
0 commit comments