Class FSImageFormatProtobuf.Loader
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.Loader
- Enclosing class:
- FSImageFormatProtobuf
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStreamForSection(FsImageProto.FileSummary.Section section, String compressionCodec) Given a FSImage FileSummary.section, return a LimitInput stream set to the starting position of the section and limited to the section length.org.apache.hadoop.io.MD5Hashlong
-
Method Details
-
getLoadedImageMd5
public org.apache.hadoop.io.MD5Hash getLoadedImageMd5() -
getLoadedImageTxId
public long getLoadedImageTxId() -
getLoaderContext
-
getInputStreamForSection
public InputStream getInputStreamForSection(FsImageProto.FileSummary.Section section, String compressionCodec) throws IOException Given a FSImage FileSummary.section, return a LimitInput stream set to the starting position of the section and limited to the section length.- Parameters:
section- The FileSummary.Section containing the offset and lengthcompressionCodec- The compression codec in use, if any- Returns:
- An InputStream for the given section
- Throws:
IOException
-