org.apache.hadoop.hdfs.server.namenode.snapshot
Class FileDiff
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.snapshot.FileDiff
- All Implemented Interfaces:
- Comparable<Integer>
public class FileDiff
- extends Object
The difference of an INodeFile
between two snapshots.
getFileSize
public long getFileSize()
- Returns:
- the file size in the snapshot.
toString
public String toString()
compareTo
public final int compareTo(Integer that)
- Compare diffs with snapshot ID.
- Specified by:
compareTo
in interface Comparable<Integer>
getSnapshotId
public final int getSnapshotId()
- Returns:
- the snapshot object of this diff.
Copyright © 2014 Apache Software Foundation. All Rights Reserved.