hudi-client/src/main/java/org/apache/hudi/table/action/rollback/RollbackUtils.java
/**
   * Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type.
   * @param fs instance of {@link FileSystem} to use.
   * @param basePath base path of interest.
   * @param shouldAssumeDatePartitioning {@code true} if date partitioning should be assumed. {@code false} otherwise.
   * @return {@link List} of {@link ListingBasedRollbackRequest}s thus collected.
   */
Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type.
@param fs instance of  FileSystem to use.
@param basePath base path of interest.
@param shouldAssumeDatePartitioning  true if date partitioning should be assumed.  false otherwise.
@return  List of  ListingBasedRollbackRequests thus collected.
Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type . @param fs instance of FileSystem to use . @param basePath base path of interest . @param shouldAssumeDatePartitioning true if date partitioning should be assumed . false otherwise . @return List of ListingBasedRollbackRequests thus collected .
public static List<ListingBasedRollbackRequest> generateRollbackRequestsByListingCOW(FileSystem fs, String basePath, boolean shouldAssumeDatePartitioning) {
    try {
      return FSUtils.getAllPartitionPaths(fs, basePath, shouldAssumeDatePartitioning).stream()
          .map(ListingBasedRollbackRequest::createRollbackRequestWithDeleteDataAndLogFilesAction)
          .collect(Collectors.toList());
    } catch (IOException e) {
      throw new HoodieIOException("Error generating rollback requests", e);
    }
  }
public static List < ListingBasedRollbackRequest > generateRollbackRequestsByListingCOW ( FileSystem fs , String basePath , boolean shouldAssumeDatePartitioning ) { try { return FSUtils . getAllPartitionPaths ( fs , basePath , shouldAssumeDatePartitioning ) . stream ( ) . map ( ListingBasedRollbackRequest :: createRollbackRequestWithDeleteDataAndLogFilesAction ) . collect ( Collectors . toList ( ) ) ; } catch ( IOException e ) { throw new HoodieIOException ( "Error generating rollback requests" , e ) ; } }
Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type.
Generate all rollback requests that needs rolling back this action without actually performing rollback for COW table type .