public class FileDiff extends Object
INodeFile
between two snapshots.Modifier and Type | Method and Description |
---|---|
int |
compareTo(Integer that)
Compare diffs with snapshot ID.
|
void |
destroyAndCollectSnapshotBlocks(INode.BlocksMapUpdateInfo collectedBlocks) |
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo[] |
getBlocks() |
long |
getFileSize() |
int |
getSnapshotId() |
void |
setBlocks(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo[] blocks)
Copy block references into the snapshot
up to the current
fileSize . |
String |
toString() |
public long getFileSize()
public void setBlocks(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo[] blocks)
fileSize
.
Should be done only once.public org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo[] getBlocks()
public String toString()
public void destroyAndCollectSnapshotBlocks(INode.BlocksMapUpdateInfo collectedBlocks)
public final int compareTo(Integer that)
compareTo
in interface Comparable<Integer>
public final int getSnapshotId()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.