Package org.apache.hadoop.hdfs.protocol
Class SnapshotDiffReportListing
java.lang.Object
org.apache.hadoop.hdfs.protocol.SnapshotDiffReportListing
This class represents to the difference between two snapshots of
the same directory, or the difference between a snapshot of the directory and
its current state. This Class serves the purpose of collecting diff entries
in 3 lists : created, deleted and modified list combined size of which is set
by dfs.snapshotdiff-report.limit over one rpc call to the namenode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresenting the full path and diff type of a file/directory where changes have happened. -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotDiffReportListing(byte[] startPath, List<SnapshotDiffReportListing.DiffReportListingEntry> modifiedEntryList, List<SnapshotDiffReportListing.DiffReportListingEntry> createdEntryList, List<SnapshotDiffReportListing.DiffReportListingEntry> deletedEntryList, int index, boolean isFromEarlier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbyte[]
-
Constructor Details
-
SnapshotDiffReportListing
public SnapshotDiffReportListing() -
SnapshotDiffReportListing
public SnapshotDiffReportListing(byte[] startPath, List<SnapshotDiffReportListing.DiffReportListingEntry> modifiedEntryList, List<SnapshotDiffReportListing.DiffReportListingEntry> createdEntryList, List<SnapshotDiffReportListing.DiffReportListingEntry> deletedEntryList, int index, boolean isFromEarlier)
-
-
Method Details
-
getModifyList
-
getCreateList
-
getDeleteList
-
getLastPath
public byte[] getLastPath()- Returns:
lastPath
-
getLastIndex
public int getLastIndex() -
getIsFromEarlier
public boolean getIsFromEarlier()
-