public ReaderContext build() {
    validateFields();
    return new ReaderContext(filePath, fsdis, fileSize, hfs, primaryReplicaReader, type);
  }
A builder that helps in building up the ReaderContext
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/ReaderContextBuilder.java