public static final class FSImageFormatProtobuf.Saver extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_CANCEL_INTERVAL |
Modifier and Type | Method and Description |
---|---|
void |
commitSection(FsImageProto.FileSummary.Builder summary,
FSImageFormatProtobuf.SectionName name) |
void |
commitSectionAndSubSection(FsImageProto.FileSummary.Builder summary,
FSImageFormatProtobuf.SectionName name,
FSImageFormatProtobuf.SectionName subSectionName)
Commit the length and offset of a fsimage section to the summary index,
including the sub section, which will be committed before the section is
committed.
|
void |
commitSubSection(FsImageProto.FileSummary.Builder summary,
FSImageFormatProtobuf.SectionName name)
Commit the length and offset of a fsimage sub-section to the summary
index.
|
org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext |
getContext() |
int |
getInodesPerSubSection() |
org.apache.hadoop.io.MD5Hash |
getSavedDigest() |
FSImageFormatProtobuf.SaverContext |
getSaverContext() |
boolean |
shouldWriteSubSections() |
public static final int CHECK_CANCEL_INTERVAL
public org.apache.hadoop.io.MD5Hash getSavedDigest()
public org.apache.hadoop.hdfs.server.namenode.SaveNamespaceContext getContext()
public FSImageFormatProtobuf.SaverContext getSaverContext()
public int getInodesPerSubSection()
public boolean shouldWriteSubSections()
public void commitSectionAndSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, FSImageFormatProtobuf.SectionName subSectionName) throws IOException
summary
- The image summary objectname
- The name of the section to commitsubSectionName
- The name of the sub-section to commitIOException
public void commitSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException
IOException
public void commitSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException
summary
- The image summary objectname
- The name of the sub-section to commitIOException
Copyright © 2019 Apache Software Foundation. All Rights Reserved.