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(Snapshot snapshot,
Snapshot prior,
N currentINode,
INode.BlocksMapUpdateInfo collectedBlocks,
List<INode> removedINodes,
boolean countDiffChange)
Delete a snapshot.
|
D |
getDiff(Snapshot snapshot) |
D |
getLast() |
Snapshot |
getLastSnapshot() |
Snapshot |
getPrior(int snapshotId) |
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(Snapshot latest,
N currentINode,
A snapshotCopy)
Save the snapshot copy to the latest snapshot.
|
String |
toString() |
public void clear()
public final Quota.Counts deleteSnapshotDiff(Snapshot snapshot, Snapshot prior, N currentINode, INode.BlocksMapUpdateInfo collectedBlocks, List<INode> removedINodes, boolean countDiffChange) throws QuotaExceededException
snapshot
- The snapshot to be deletedprior
- The snapshot taken before the to-be-deleted snapshotcollectedBlocks
- Used to collect information for blocksMap updateQuotaExceededException
public final D getLast()
public final Snapshot getLastSnapshot()
public final Snapshot getPrior(int snapshotId)
public final D getDiff(Snapshot snapshot)
public final Snapshot getSnapshotById(int snapshotId)
public void saveSelf2Snapshot(Snapshot latest, N currentINode, A snapshotCopy) throws QuotaExceededException
QuotaExceededException
public Iterator<D> iterator()
Copyright © 2013 Apache Software Foundation. All rights reserved.