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 commitIOExceptionpublic void commitSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException
IOExceptionpublic void commitSubSection(FsImageProto.FileSummary.Builder summary, FSImageFormatProtobuf.SectionName name) throws IOException
summary - The image summary objectname - The name of the sub-section to commitIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.