code: public static FileStatus[] getDataChunkFiles(FileSystem fs,
                                                   Path path,
                                                   final int partitionId,
                                                   final int replicaType) throws IOException {
          return fs.listStatus(path, new PathFilter() {
  
              public boolean accept(Path input) {
                  if(input.getName().matches("^" + Integer.toString(partitionId) + "_"
                                             + Integer.toString(replicaType) + "_[\\d]+\\.data")) {
                      return true;
                  } else {
                      return false;
                  }
              }
          });
      }
docs: Given a filesystem and path to a node, gets all the files which belong to
  a partition and replica type
  
  Works only for {@link ReadOnlyStorageFormat.READONLY_V2}
  
  @param fs Underlying filesystem
  @param path The node directory path
  @param partitionId The partition id for which we get the files
  @param replicaType The replica type
  @return Returns list of files of this partition, replicaType
  @throws IOException