iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::MockCatalog Class Reference
Inheritance diagram for iceberg::MockCatalog:
iceberg::Catalog

Public Member Functions

 MOCK_METHOD (std::string_view, name,(),(const, override))
 
 MOCK_METHOD (Status, CreateNamespace,(const Namespace &,(const std::unordered_map< std::string, std::string > &)),(override))
 
 MOCK_METHOD ((Result< std::vector< Namespace > >), ListNamespaces,(const Namespace &),(const, override))
 
 MOCK_METHOD ((Result< std::unordered_map< std::string, std::string > >), GetNamespaceProperties,(const Namespace &),(const, override))
 
 MOCK_METHOD (Status, UpdateNamespaceProperties,(const Namespace &,(const std::unordered_map< std::string, std::string > &),(const std::unordered_set< std::string > &)),(override))
 
 MOCK_METHOD (Status, DropNamespace,(const Namespace &),(override))
 
 MOCK_METHOD (Result< bool >, NamespaceExists,(const Namespace &),(const, override))
 
 MOCK_METHOD ((Result< std::vector< TableIdentifier > >), ListTables,(const Namespace &),(const, override))
 
 MOCK_METHOD ((Result< std::shared_ptr< Table > >), CreateTable,(const TableIdentifier &, const std::shared_ptr< Schema > &, const std::shared_ptr< PartitionSpec > &, const std::shared_ptr< SortOrder > &, const std::string &,(const std::unordered_map< std::string, std::string > &)),(override))
 
 MOCK_METHOD ((Result< std::shared_ptr< Table > >), UpdateTable,(const TableIdentifier &,(const std::vector< std::unique_ptr< TableRequirement > > &),(const std::vector< std::unique_ptr< TableUpdate > > &)),(override))
 
 MOCK_METHOD ((Result< std::shared_ptr< Transaction > >), StageCreateTable,(const TableIdentifier &, const std::shared_ptr< Schema > &, const std::shared_ptr< PartitionSpec > &, const std::shared_ptr< SortOrder > &, const std::string &,(const std::unordered_map< std::string, std::string > &)),(override))
 
 MOCK_METHOD (Result< bool >, TableExists,(const TableIdentifier &),(const, override))
 
 MOCK_METHOD (Status, DropTable,(const TableIdentifier &, bool),(override))
 
 MOCK_METHOD (Status, RenameTable,(const TableIdentifier &, const TableIdentifier &),(override))
 
 MOCK_METHOD ((Result< std::shared_ptr< Table > >), LoadTable,(const TableIdentifier &),(override))
 
 MOCK_METHOD ((Result< std::shared_ptr< Table > >), RegisterTable,(const TableIdentifier &, const std::string &),(override))
 
- Public Member Functions inherited from iceberg::Catalog
virtual std::string_view name () const =0
 Return the name for this catalog.
 
virtual Status CreateNamespace (const Namespace &ns, const std::unordered_map< std::string, std::string > &properties)=0
 Create a namespace with associated properties.
 
virtual Result< std::vector< Namespace > > ListNamespaces (const Namespace &ns) const =0
 List child namespaces from the given namespace.
 
virtual Result< std::unordered_map< std::string, std::string > > GetNamespaceProperties (const Namespace &ns) const =0
 Get metadata properties for a namespace.
 
virtual Status DropNamespace (const Namespace &ns)=0
 Drop a namespace.
 
virtual Result< bool > NamespaceExists (const Namespace &ns) const =0
 Check whether the namespace exists.
 
virtual Status UpdateNamespaceProperties (const Namespace &ns, const std::unordered_map< std::string, std::string > &updates, const std::unordered_set< std::string > &removals)=0
 Update a namespace's properties by applying additions and removals.
 
virtual Result< std::vector< TableIdentifier > > ListTables (const Namespace &ns) const =0
 Return all the identifiers under this namespace.
 
virtual Result< std::shared_ptr< Table > > CreateTable (const TableIdentifier &identifier, const std::shared_ptr< Schema > &schema, const std::shared_ptr< PartitionSpec > &spec, const std::shared_ptr< SortOrder > &order, const std::string &location, const std::unordered_map< std::string, std::string > &properties)=0
 Create a table.
 
virtual Result< std::shared_ptr< Table > > UpdateTable (const TableIdentifier &identifier, const std::vector< std::unique_ptr< TableRequirement > > &requirements, const std::vector< std::unique_ptr< TableUpdate > > &updates)=0
 Update a table.
 
virtual Result< std::shared_ptr< Transaction > > StageCreateTable (const TableIdentifier &identifier, const std::shared_ptr< Schema > &schema, const std::shared_ptr< PartitionSpec > &spec, const std::shared_ptr< SortOrder > &order, const std::string &location, const std::unordered_map< std::string, std::string > &properties)=0
 Start a transaction to create a table.
 
virtual Result< bool > TableExists (const TableIdentifier &identifier) const =0
 Check whether table exists.
 
virtual Status DropTable (const TableIdentifier &identifier, bool purge)=0
 Drop a table; optionally delete data and metadata files.
 
virtual Status RenameTable (const TableIdentifier &from, const TableIdentifier &to)=0
 Rename a table.
 
virtual Result< std::shared_ptr< Table > > LoadTable (const TableIdentifier &identifier)=0
 Load a table.
 
virtual Result< std::shared_ptr< Table > > RegisterTable (const TableIdentifier &identifier, const std::string &metadata_file_location)=0
 Register a table with the catalog if it does not exist.
 

The documentation for this class was generated from the following file: