Class FSImageFormatProtobuf.Saver
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.Saver
- Enclosing class:
- FSImageFormatProtobuf
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcommitSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, boolean afterSubSectionCommit) voidcommitSectionAndSubSection(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.voidvoidcommitSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, boolean isLast) Commit the length and offset of a fsimage sub-section to the summary index.intorg.apache.hadoop.io.MD5Hash
-
Field Details
-
CHECK_CANCEL_INTERVAL
public static final int CHECK_CANCEL_INTERVAL- See Also:
-
-
Method Details
-
getSavedDigest
public org.apache.hadoop.io.MD5Hash getSavedDigest() -
getContext
-
getSaverContext
-
getInodesPerSubSection
public int getInodesPerSubSection() -
getSectionOutputStream
-
commitSectionAndSubSection
public void commitSectionAndSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, FSImageFormatProtobuf.SectionName subSectionName) throws IOException 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.- Parameters:
summary- The image summary objectname- The name of the section to commitsubSectionName- The name of the sub-section to commit- Throws:
IOException
-
commitSection
public void commitSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException - Throws:
IOException
-
commitSection
public void commitSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, boolean afterSubSectionCommit) throws IOException - Throws:
IOException
-
commitSubSection
public void commitSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException - Throws:
IOException
-
commitSubSection
public void commitSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name, boolean isLast) throws IOException Commit the length and offset of a fsimage sub-section to the summary index.- Parameters:
summary- The image summary objectname- The name of the sub-section to commitisLast- True if sub-section is the last sub-section of each section- Throws:
IOException
-