|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.snapshot.DirectoryWithSnapshotFeature.DirectoryDiffList
public static class DirectoryWithSnapshotFeature.DirectoryDiffList
A list of directory diffs.
| Constructor Summary | |
|---|---|
DirectoryWithSnapshotFeature.DirectoryDiffList()
|
|
| Method Summary | |
|---|---|
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()
|
boolean |
removeChild(Diff.ListType type,
org.apache.hadoop.hdfs.server.namenode.INode child)
Remove the given child in the created/deleted list, if there is any. |
boolean |
replaceChild(Diff.ListType type,
org.apache.hadoop.hdfs.server.namenode.INode oldChild,
org.apache.hadoop.hdfs.server.namenode.INode newChild)
Replace the given child in the created/deleted list, if there is any. |
void |
saveSelf2Snapshot(int latestSnapshotId,
N currentINode,
A snapshotCopy)
Save the snapshot copy to the latest snapshot. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryWithSnapshotFeature.DirectoryDiffList()
| Method Detail |
|---|
public boolean replaceChild(Diff.ListType type,
org.apache.hadoop.hdfs.server.namenode.INode oldChild,
org.apache.hadoop.hdfs.server.namenode.INode newChild)
public boolean removeChild(Diff.ListType type,
org.apache.hadoop.hdfs.server.namenode.INode child)
public final List<D> asList()
List.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 update
org.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.QuotaExceededExceptionpublic Iterator<D> iterator()
iterator in interface Iterable<D extends org.apache.hadoop.hdfs.server.namenode.snapshot.AbstractINodeDiff<N,A,D>>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||