Package org.apache.hadoop.hdfs.protocol
Class SnapshotDiffReport
java.lang.Object
org.apache.hadoop.hdfs.protocol.SnapshotDiffReport
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresenting the full path and diff type of a file/directory where changes have happened.static classRecords the stats related to Snapshot diff operation.static enumTypes of the difference, which include CREATE, MODIFY, DELETE, and RENAME. -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot, List<SnapshotDiffReport.DiffReportEntry> entryList) SnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot, SnapshotDiffReport.DiffStats dStat, List<SnapshotDiffReport.DiffReportEntry> entryList) -
Method Summary
-
Constructor Details
-
SnapshotDiffReport
public SnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot, List<SnapshotDiffReport.DiffReportEntry> entryList) -
SnapshotDiffReport
public SnapshotDiffReport(String snapshotRoot, String fromSnapshot, String toSnapshot, SnapshotDiffReport.DiffStats dStat, List<SnapshotDiffReport.DiffReportEntry> entryList)
-
-
Method Details