code: public boolean belongsTo(BlockStoreLocation location) {
      boolean tierInRange =
          tierAlias().equals(location.tierAlias()) || location.tierAlias().equals(ANY_TIER);
      boolean dirInRange = (dir() == location.dir()) || (location.dir() == ANY_DIR);
      return tierInRange && dirInRange;
    }
docs: Returns whether this location belongs to the specific location.
  
  Location A belongs to B when tier and dir of A are all in the range of B respectively.
  
  @param location the target BlockStoreLocation
  @return true when this BlockStoreLocation belongs to the target, otherwise false