Package org.apache.iceberg.io
Interface LocationProvider
- All Superinterfaces:
Serializable
Interface for providing data file locations to write tasks.
Implementations must be Serializable because instances will be serialized to tasks.
-
Method Summary
Modifier and TypeMethodDescriptionnewDataLocation(String filename) Return a fully-qualified data file location for the given filename.newDataLocation(PartitionSpec spec, StructLike partitionData, String filename) Return a fully-qualified data file location for the given partition and filename.
-
Method Details
-
newDataLocation
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
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
-