org.apache.hadoop.hdfs.protocol
Class SnapshotDiffReport
java.lang.Object
org.apache.hadoop.hdfs.protocol.SnapshotDiffReport
public class SnapshotDiffReport
- extends Object
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.
SnapshotDiffReport
public SnapshotDiffReport(String snapshotRoot,
String fromSnapshot,
String toSnapshot,
List<SnapshotDiffReport.DiffReportEntry> entryList)
getSnapshotRoot
public String getSnapshotRoot()
- Returns:
snapshotRoot
getFromSnapshot
public String getFromSnapshot()
- Returns:
fromSnapshot
getLaterSnapshotName
public String getLaterSnapshotName()
- Returns:
toSnapshot
getDiffList
public List<SnapshotDiffReport.DiffReportEntry> getDiffList()
- Returns:
diffList
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2014 Apache Software Foundation. All Rights Reserved.