public static long parseTransactionId(String path) {
    String fileName = TableFileUtil.getFileName(path);
    Matcher matcher = KEYED_FILE_NAME_PATTERN.matcher(fileName);
    if (matchMixedFileFormat(matcher)) {
      return Long.parseLong(matcher.group(3));
    } else {
      return 0L;
    }
  }
Parse transaction id from file name.

@param path path
@return transactionId, return 0 if path is not file format of mixed-format tables.
amoro-format-iceberg/src/main/java/org/apache/amoro/data/FileNameRules.java