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.
|
QuotaCounts |
deleteSnapshotDiff(BlockStoragePolicySuite bsps,
int snapshot,
int prior,
N currentINode,
INode.BlocksMapUpdateInfo collectedBlocks,
List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes)
Delete a snapshot.
|
void |
destroyAndCollectSnapshotBlocks(INode.BlocksMapUpdateInfo collectedBlocks) |
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous[] |
findEarlierSnapshotBlocks(int snapshotId) |
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous[] |
findLaterSnapshotBlocks(int snapshotId) |
D |
getDiffById(int snapshotId) |
D |
getLast() |
int |
getLastSnapshotId() |
int |
getPrior(int snapshotId) |
int |
getPrior(int anchorId,
boolean exclusive)
Find the latest snapshot before a given snapshot.
|
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,
org.apache.hadoop.hdfs.server.namenode.INodeFile iNodeFile,
org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes snapshotCopy,
boolean withBlocks) |
D |
saveSelf2Snapshot(int latestSnapshotId,
N currentINode,
A snapshotCopy)
Save the snapshot copy to the latest snapshot.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FileDiffList()
public void destroyAndCollectSnapshotBlocks(INode.BlocksMapUpdateInfo collectedBlocks)
public void saveSelf2Snapshot(int latestSnapshotId, org.apache.hadoop.hdfs.server.namenode.INodeFile iNodeFile, org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes snapshotCopy, boolean withBlocks)
public org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous[] findEarlierSnapshotBlocks(int snapshotId)
public org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous[] findLaterSnapshotBlocks(int snapshotId)
public void clear()
public final QuotaCounts deleteSnapshotDiff(BlockStoragePolicySuite bsps, int snapshot, int prior, N currentINode, INode.BlocksMapUpdateInfo collectedBlocks, List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes)
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 updatepublic final int getLastSnapshotId()
public final int getPrior(int anchorId, boolean exclusive)
anchorId - The returned snapshot's id must be <= or < this given
snapshot id.exclusive - True means the returned snapshot's id must be < the given
id, otherwise <=.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 D saveSelf2Snapshot(int latestSnapshotId, N currentINode, A snapshotCopy)
Copyright © 2018 CERN. All Rights Reserved.