Skip to content

Commit

Permalink
Core: Deprecate legacy ways for loading position deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
aokolnychyi committed Oct 1, 2024
1 parent c8fe01e commit 5af1c72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/main/java/org/apache/iceberg/deletes/Deletes.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,19 @@ private static <T extends StructLike> CloseableIterable<Long> extractPositions(
return CloseableIterable.transform(filteredRows, row -> (Long) POSITION_ACCESSOR.get(row));
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0; use delete loaders.
*/
@Deprecated
public static <T extends StructLike> PositionDeleteIndex toPositionIndex(
CharSequence dataLocation, List<CloseableIterable<T>> deleteFiles) {
return toPositionIndex(dataLocation, deleteFiles, ThreadPools.getDeleteWorkerPool());
}

/**
* @deprecated since 1.7.0, will be removed in 1.8.0; use delete loaders.
*/
@Deprecated
public static <T extends StructLike> PositionDeleteIndex toPositionIndex(
CharSequence dataLocation,
List<CloseableIterable<T>> deleteFiles,
Expand Down

0 comments on commit 5af1c72

Please sign in to comment.