|
iceberg-cpp
|
Interface for providing data file locations. More...
#include <location_provider.h>
Public Member Functions | |
| virtual std::string | NewDataLocation (std::string_view filename)=0 |
| Return a fully-qualified data file location for the given filename. | |
| virtual Result< std::string > | NewDataLocation (const PartitionSpec &spec, const PartitionValues &partition, std::string_view filename)=0 |
| Return a fully-qualified data file location for the given partition and filename. | |
Static Public Member Functions | |
| static Result< std::unique_ptr< LocationProvider > > | Make (std::string_view location, const TableProperties &properties) |
| Create a LocationProvider for the given table location and properties. | |
Interface for providing data file locations.
|
static |
Create a LocationProvider for the given table location and properties.
| location | table location |
| properties | table properties |
|
pure virtual |
Return a fully-qualified data file location for the given partition and filename.
| spec | partition spec |
| partition | a tuple of partition values matching the given spec |
| filename | file name |
Implemented in iceberg::DefaultLocationProvider, and iceberg::ObjectStoreLocationProvider.
|
pure virtual |
Return a fully-qualified data file location for the given filename.
| filename | file name to get location |
Implemented in iceberg::DefaultLocationProvider, and iceberg::ObjectStoreLocationProvider.