iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::LocationProvider Class Referenceabstract

Interface for providing data file locations. More...

#include <location_provider.h>

Inheritance diagram for iceberg::LocationProvider:
iceberg::DefaultLocationProvider iceberg::ObjectStoreLocationProvider

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.
 

Detailed Description

Interface for providing data file locations.

Member Function Documentation

◆ Make()

Result< std::unique_ptr< LocationProvider > > iceberg::LocationProvider::Make ( std::string_view  location,
const TableProperties properties 
)
static

Create a LocationProvider for the given table location and properties.

Parameters
locationtable location
propertiestable properties
Returns
a LocationProvider instance

◆ NewDataLocation() [1/2]

virtual Result< std::string > iceberg::LocationProvider::NewDataLocation ( const PartitionSpec spec,
const PartitionValues partition,
std::string_view  filename 
)
pure virtual

Return a fully-qualified data file location for the given partition and filename.

Parameters
specpartition spec
partitiona tuple of partition values matching the given spec
filenamefile name
Returns
a fully-qualified location URI for a data file

Implemented in iceberg::DefaultLocationProvider, and iceberg::ObjectStoreLocationProvider.

◆ NewDataLocation() [2/2]

virtual std::string iceberg::LocationProvider::NewDataLocation ( std::string_view  filename)
pure virtual

Return a fully-qualified data file location for the given filename.

Parameters
filenamefile name to get location
Returns
a fully-qualified location URI for a data file

Implemented in iceberg::DefaultLocationProvider, and iceberg::ObjectStoreLocationProvider.


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