@Override
  public int evictBlocksByHfileName(String hfileName) {
    int numEvicted = 0;
    for (BlockCacheKey key : map.keySet()) {
      if (key.getHfileName().equals(hfileName)) {
        if (evictBlock(key)) {
          ++numEvicted;
        }
      }
    }
    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/LruBlockCache.java