/** * Iterate over the snapshot store files, restored.edits and logs * * @param fs {@link FileSystem} * @param snapshotDir {@link Path} to the Snapshot directory * @param visitor callback object to get the referenced files * @throws IOException if an error occurred while scanning the directory */ public static void visitReferencedFiles(final FileSystem fs, final Path snapshotDir, final FileVisitor visitor) throws IOException { visitTableStoreFiles(fs, snapshotDir, visitor); visitRecoveredEdits(fs, snapshotDir, visitor); visitLogFiles(fs, snapshotDir, visitor); }
try { SnapshotReferenceUtil.visitRecoveredEdits(fs, snapshotDir, new FSVisitor.RecoveredEditsVisitor() { public void recoveredEdits (final String region, final String logfile) throws IOException {