Skip to content

Commit

Permalink
API: Deprecate ContentFile#path API and add location API which return…
Browse files Browse the repository at this point in the history
…s String (#11092)

Co-authored-by: Eduard Tudenhoefner <[email protected]>
  • Loading branch information
amogh-jahagirdar and nastra authored Sep 23, 2024
1 parent 5a2c1c9 commit 257bad2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion api/src/main/java/org/apache/iceberg/ContentFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,19 @@ default String manifestLocation() {
*/
FileContent content();

/** Returns fully qualified path to the file, suitable for constructing a Hadoop Path. */
/**
* Returns fully qualified path to the file, suitable for constructing a Hadoop Path.
*
* @deprecated since 1.7.0, will be removed in 2.0.0; use {@link #location()} instead.
*/
@Deprecated
CharSequence path();

/** Return the fully qualified path to the file. */
default String location() {
return path().toString();
}

/** Returns format of the file. */
FileFormat format();

Expand Down

0 comments on commit 257bad2

Please sign in to comment.