public void clearQuery(Query query){
  lock.lock();
  try {
    final Query singleton=uniqueQueries.remove(query);
    if (singleton != null) {
      onEviction(singleton);
    }
  }
  finally {
    lock.unlock();
  }
}

public void clearQuery ( Query query ) { lock . lock ( ) ; try { final Query singleton = uniqueQueries . remove ( query ) ; if ( singleton != null ) { onEviction ( singleton ) ; } } finally { lock . unlock ( ) ; } }
remove all cache entries for the given query .
