public class FileDiffList extends Object
| Constructor and Description |
|---|
FileDiffList() |
| Modifier and Type | Method and Description |
|---|---|
List<D> |
asList() |
void |
clear()
Get the size of the list and then clear it.
|
Quota.Counts |
deleteSnapshotDiff(int snapshot,
int prior,
N currentINode,
INode.BlocksMapUpdateInfo collectedBlocks,
List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes,
boolean countDiffChange)
Delete a snapshot.
|
D |
getDiffById(int snapshotId) |
D |
getLast() |
int |
getLastSnapshotId() |
int |
getPrior(int snapshotId) |
int |
getSnapshotById(int snapshotId)
Search for the snapshot whose id is 1) no less than the given id,
and 2) most close to the given id.
|
A |
getSnapshotINode(int snapshotId,
A currentINode) |
Iterator<D> |
iterator() |
void |
saveSelf2Snapshot(int latestSnapshotId,
N currentINode,
A snapshotCopy)
Save the snapshot copy to the latest snapshot.
|
String |
toString() |
public FileDiffList()
public void clear()
public final Quota.Counts deleteSnapshotDiff(int snapshot, int prior, N currentINode, INode.BlocksMapUpdateInfo collectedBlocks, List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes, boolean countDiffChange) throws org.apache.hadoop.hdfs.protocol.QuotaExceededException
snapshot - The id of the snapshot to be deletedprior - The id of the snapshot taken before the to-be-deleted snapshotcollectedBlocks - Used to collect information for blocksMap updateorg.apache.hadoop.hdfs.protocol.QuotaExceededExceptionpublic final D getLast()
public final int getLastSnapshotId()
public final int getPrior(int snapshotId)
public final D getDiffById(int snapshotId)
public final int getSnapshotById(int snapshotId)
public A getSnapshotINode(int snapshotId, A currentINode)
public void saveSelf2Snapshot(int latestSnapshotId, N currentINode, A snapshotCopy) throws org.apache.hadoop.hdfs.protocol.QuotaExceededException
org.apache.hadoop.hdfs.protocol.QuotaExceededExceptionCopyright © 2014 Apache Software Foundation. All Rights Reserved.