public static final class FSImageFormatProtobuf.Loader extends Object
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStreamForSection(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.MD5Hash |
getLoadedImageMd5() |
long |
getLoadedImageTxId() |
FSImageFormatProtobuf.LoaderContext |
getLoaderContext() |
public org.apache.hadoop.io.MD5Hash getLoadedImageMd5()
public long getLoadedImageTxId()
public FSImageFormatProtobuf.LoaderContext getLoaderContext()
public InputStream getInputStreamForSection(FsImageProto.FileSummary.Section section, String compressionCodec) throws IOException
section
- The FileSummary.Section containing the offset and lengthcompressionCodec
- The compression codec in use, if anyIOException
Copyright © 2019 Apache Software Foundation. All Rights Reserved.