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