Class SnapshotDiffReportGenerator
java.lang.Object
org.apache.hadoop.hdfs.client.impl.SnapshotDiffReportGenerator
This class represents to end users the difference between two snapshots of
the same directory, or the difference between a snapshot of the directory and
its current state. Instead of capturing all the details of the diff, this
class only lists where the changes happened and their types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<SnapshotDiffReportListing.DiffReportListingEntry>Compare two inodes based on their full names. -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotDiffReportGenerator(String snapshotRoot, String fromSnapshot, String toSnapshot, boolean isFromEarlier, List<SnapshotDiffReportListing.DiffReportListingEntry> mlist, List<SnapshotDiffReportListing.DiffReportListingEntry> clist, List<SnapshotDiffReportListing.DiffReportListingEntry> dlist) -
Method Summary
-
Field Details
-
INODE_COMPARATOR
Compare two inodes based on their full names.
-
-
Constructor Details
-
SnapshotDiffReportGenerator
public SnapshotDiffReportGenerator(String snapshotRoot, String fromSnapshot, String toSnapshot, boolean isFromEarlier, List<SnapshotDiffReportListing.DiffReportListingEntry> mlist, List<SnapshotDiffReportListing.DiffReportListingEntry> clist, List<SnapshotDiffReportListing.DiffReportListingEntry> dlist)
-
-
Method Details
-
generateReportList
public void generateReportList() -
generateReport
-