public static class FileWithSnapshot.FileDiffList extends Object
Constructor and Description |
---|
FileWithSnapshot.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(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot snapshot,
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot prior,
N currentINode,
INode.BlocksMapUpdateInfo collectedBlocks,
List<org.apache.hadoop.hdfs.server.namenode.INode> removedINodes,
boolean countDiffChange)
Delete a snapshot.
|
D |
getDiff(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot snapshot) |
D |
getLast() |
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot |
getLastSnapshot() |
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot |
getPrior(int snapshotId) |
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot |
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.
|
Iterator<D> |
iterator() |
void |
saveSelf2Snapshot(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot latest,
N currentINode,
A snapshotCopy)
Save the snapshot copy to the latest snapshot.
|
String |
toString() |
public FileWithSnapshot.FileDiffList()
public void clear()
public final Quota.Counts deleteSnapshotDiff(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot snapshot, org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot 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 snapshot to be deletedprior
- The snapshot taken before the to-be-deleted snapshotcollectedBlocks
- Used to collect information for blocksMap updateorg.apache.hadoop.hdfs.protocol.QuotaExceededException
public final D getLast()
public final org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getLastSnapshot()
public final org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getPrior(int snapshotId)
public final D getDiff(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot snapshot)
public final org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getSnapshotById(int snapshotId)
public void saveSelf2Snapshot(org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot latest, N currentINode, A snapshotCopy) throws org.apache.hadoop.hdfs.protocol.QuotaExceededException
org.apache.hadoop.hdfs.protocol.QuotaExceededException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.