Class DirectoryWithSnapshotFeature.DirectoryDiff
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.DirectoryDiff
- All Implemented Interfaces:
Comparable<Integer>
- Enclosing class:
- DirectoryWithSnapshotFeature
The difference of an
INodeDirectory between two snapshots.-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryDiff(int snapshotId, INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff diff) -
Method Summary
Modifier and TypeMethodDescriptionfinal intCompare diffs with snapshot ID.org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDifffinal intbooleantoString()
-
Constructor Details
-
DirectoryDiff
public DirectoryDiff(int snapshotId, INodeDirectory dir, org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff diff)
-
-
Method Details
-
getChildrenDiff
public org.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.ChildrenDiff getChildrenDiff() -
isSnapshotRoot
public boolean isSnapshotRoot() -
toString
-
compareTo
Compare diffs with snapshot ID.- Specified by:
compareToin interfaceComparable<N extends INode>
-
getSnapshotId
public final int getSnapshotId()- Returns:
- the snapshot object of this diff.
-