Interface LocationProvider

All Superinterfaces:
Serializable

public interface LocationProvider extends Serializable
Interface for providing data file locations to write tasks.

Implementations must be Serializable because instances will be serialized to tasks.

  • Method Details

    • newDataLocation

      String newDataLocation(String filename)
      Return a fully-qualified data file location for the given filename.
      Parameters:
      filename - a file name
      Returns:
      a fully-qualified location URI for a data file
    • newDataLocation

      String newDataLocation(PartitionSpec spec, StructLike partitionData, String filename)
      Return a fully-qualified data file location for the given partition and filename.
      Parameters:
      spec - a partition spec
      partitionData - a tuple of partition data for data in the file, matching the given spec
      filename - a file name
      Returns:
      a fully-qualified location URI for a data file