Package org.apache.iceberg.io
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
newDataLocation(java.lang.String filename)
Return a fully-qualified data file location for the given filename.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.
-
-
-
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 specpartitionData
- a tuple of partition data for data in the file, matching the given specfilename
- a file name- Returns:
- a fully-qualified location URI for a data file
-
-