|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.FSImageFormat.Loader
public static class FSImageFormat.Loader
A one-shot class responsible for loading an image. The load() function should be called once, after which the getter methods may be used to retrieve information about the image that was loaded, if loading was successful.
Method Summary | |
---|---|
org.apache.hadoop.io.MD5Hash |
getLoadedImageMd5()
Return the MD5 checksum of the image that has been loaded. |
long |
getLoadedImageTxId()
|
org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot |
getSnapshot(DataInput in)
|
void |
load(File curFile)
|
org.apache.hadoop.hdfs.server.namenode.INodeDirectoryAttributes |
loadINodeDirectoryAttributes(DataInput in)
|
org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes |
loadINodeFileAttributes(DataInput in)
Load INodeFileAttributes . |
org.apache.hadoop.hdfs.server.namenode.INode |
loadINodeWithLocalName(boolean isSnapshotINode,
DataInput in,
boolean updateINodeMap)
|
org.apache.hadoop.hdfs.server.namenode.INode |
loadINodeWithLocalName(boolean isSnapshotINode,
DataInput in,
boolean updateINodeMap,
StartupProgress.Counter counter)
|
void |
updateBlocksMap(org.apache.hadoop.hdfs.server.namenode.INodeFile file)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public org.apache.hadoop.io.MD5Hash getLoadedImageMd5()
IllegalStateException
- if load() has not yet been called.public long getLoadedImageTxId()
public void load(File curFile) throws IOException
IOException
public void updateBlocksMap(org.apache.hadoop.hdfs.server.namenode.INodeFile file)
public org.apache.hadoop.hdfs.server.namenode.INode loadINodeWithLocalName(boolean isSnapshotINode, DataInput in, boolean updateINodeMap) throws IOException
IOException
public org.apache.hadoop.hdfs.server.namenode.INode loadINodeWithLocalName(boolean isSnapshotINode, DataInput in, boolean updateINodeMap, StartupProgress.Counter counter) throws IOException
IOException
public org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes loadINodeFileAttributes(DataInput in) throws IOException
INodeFileAttributes
.
IOException
public org.apache.hadoop.hdfs.server.namenode.INodeDirectoryAttributes loadINodeDirectoryAttributes(DataInput in) throws IOException
IOException
public org.apache.hadoop.hdfs.server.namenode.snapshot.Snapshot getSnapshot(DataInput in) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |