Interface LocationProvider

  • All Superinterfaces:
    java.io.Serializable

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

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

    • Method Detail

      • newDataLocation

        java.lang.String newDataLocation​(java.lang.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

        java.lang.String newDataLocation​(PartitionSpec spec,
                                         StructLike partitionData,
                                         java.lang.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