读取文件数据
FileSystem实例化
#实例化FileSystem对象(DistributedFileSystem实例)
#DFSClient构造方法,关键代码块
扫描二维码关注公众号,回复:
2975714 查看本文章
SequenceFile.Reader 实例化
Reader构造方法源码(部分)
#通过抽象类FileSystemLinkResolver.resolve方法获得FSDataInputStream实例
#doCall方法中的DistributedFileSystem.this.dfs.open方法实现
#DFSClient类中
#构建DFSInputStream对象
#block信息
#DFSClient类中获取block及其备份信息
#namenode(ClientProtocol)的实现类:ClientNamenodeProtocolTranslatorPB
#block信息(包含实际存储位置(备份信息))
#SequnceFile.Reader构造方法中回调用this.initialize(~)
#数据读取