org.apache.hadoop.hdfs.server.namenode.snapshot
Class FileWithSnapshot.FileDiff

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot.FileDiff
All Implemented Interfaces:
Comparable<Integer>
Enclosing interface:
org.apache.hadoop.hdfs.server.namenode.snapshot.FileWithSnapshot

public static class FileWithSnapshot.FileDiff
extends Object

The difference of an INodeFile between two snapshots.


Method Summary
 int compareTo(Integer that)
          Compare diffs with snapshot ID.
 long getFileSize()
           
 org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getSnapshot()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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>

getSnapshot

public final org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getSnapshot()
Returns:
the snapshot object of this diff.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.