Skip to content

Commit

Permalink
method to test availability of listFilesPaged
Browse files Browse the repository at this point in the history
  • Loading branch information
smdsbz committed Jan 14, 2025
1 parent 60411f4 commit ae91470
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions paimon-common/src/main/java/org/apache/paimon/fs/FileIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ default FileStatus[] listFiles(Path path, boolean recursive) throws IOException
return statuses.toArray(new FileStatus[0]);
}

/**
* Tests whether {@link #listFilesPaged} is supported.
*
* @return whether {@link #listFilesPaged} is supported
*/
default boolean supportsListFilesPaged() {
return false;
}

/**
* List the statuses of the files in the given path in non-overlapping pages, if the path is a
* directory.
Expand Down

0 comments on commit ae91470

Please sign in to comment.