public interface LocationProvider
extends java.io.Serializable
Implementations must be Serializable
because instances will be serialized to tasks.
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
newDataLocation(java.lang.String filename)
Return a fully-qualified data file location for the given filename.
|
java.lang.String newDataLocation(java.lang.String filename)
filename
- a file namejava.lang.String newDataLocation(PartitionSpec spec, StructLike partitionData, java.lang.String filename)
spec
- a partition specpartitionData
- a tuple of partition data for data in the file, matching the given specfilename
- a file name