Class FSImageFormatProtobuf.Loader

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.Loader
Enclosing class:
FSImageFormatProtobuf

public static final class FSImageFormatProtobuf.Loader extends Object
  • Method Details

    • getLoadedImageMd5

      public org.apache.hadoop.io.MD5Hash getLoadedImageMd5()
    • getLoadedImageTxId

      public long getLoadedImageTxId()
    • getLoaderContext

      public FSImageFormatProtobuf.LoaderContext 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 length
      compressionCodec - The compression codec in use, if any
      Returns:
      An InputStream for the given section
      Throws:
      IOException