static void addFile(List<FileStatus> result, LocatedFileStatus lfs, long startTime,
    long endTime) {
    long timestamp = AbstractFSWALProvider.getTimestamp(lfs.getPath().getName());
    if (timestamp > 0) {
      // Looks like a valid timestamp.
      if (timestamp <= endTime && timestamp >= startTime) {
        LOG.info("Found {}", lfs.getPath());
        result.add(lfs);
      } else {
        LOG.info("Skipped {}, outside range [{}/{} - {}/{}]", lfs.getPath(), startTime,
          Instant.ofEpochMilli(startTime), endTime, Instant.ofEpochMilli(endTime));
      }
    } else {
      // If no timestamp, add it regardless.
      LOG.info("Found (no-timestamp!) {}", lfs);
      result.add(lfs);
    }
  }
@param startTime If file looks like it has a timestamp in its name, we'll check if newer or
                 equal to this value else we will filter out the file. If name does not seem to
                 have a timestamp, we will just return it w/o filtering.
@param endTime   If file looks like it has a timestamp in its name, we'll check if older or
                 equal to this value else we will filter out the file. If name does not seem to
                 have a timestamp, we will just return it w/o filtering.
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/WALInputFormat.java