public static StoreFileInfo createStoreFileInfoForHFile(final Configuration conf,
    final FileSystem fs, final Path initialPath, final boolean primaryReplica) throws IOException {
    if (HFileLink.isHFileLink(initialPath) || isReference(initialPath)) {
      throw new InvalidHFileException("Path " + initialPath + " is a Hfile link or a Regerence");
    }
    StoreFileInfo storeFileInfo =
      new StoreFileInfo(conf, fs, null, initialPath, primaryReplica, null);
    return storeFileInfo;
  }
Return the active file name that contains the real data.
<p>
For referenced hfile, we will return the name of the reference file as it will be used to
construct the StoreFileReader. And for linked hfile, we will return the name of the file being
linked.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileInfo.java