@Override
  public int evictBlocksByHfileName(String hfileName) {
    int numEvicted = (int) map.keySet().stream().filter(key -> key.getHfileName().equals(hfileName))
      .filter(this::evictBlock).count();
    if (victimHandler != null) {
      numEvicted += victimHandler.evictBlocksByHfileName(hfileName);
    }
    return numEvicted;
  }
Evicts all blocks for a specific HFile. This is an expensive operation implemented as a
linear-time search through all blocks in the cache. Ideally this should be a search in a
log-access-time map.
<p>
This is used for evict-on-close to remove all blocks of a specific HFile.
@return the number of blocks evicted
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/LruAdaptiveBlockCache.java