int frequency(Query query) { assert query instanceof BoostQuery == false; assert query instanceof ConstantScoreQuery == false; // call hashCode outside of sync block // in case it's somewhat expensive: int hashCode = query.hashCode(); synchronized (this) { return recentlyUsedFilters.frequency(hashCode); } }
@Override public int hashCode() { int h = classHash(); h = 31 * h + query.hashCode(); h = 31 * h + Float.floatToIntBits(boost); return h; }
@Override public int hashCode() { return 31 * classHash() + query.hashCode(); } }
/** Returns a hash code value for this object.*/ @Override public int hashCode() { return 31 * query.hashCode() + occur.hashCode(); }
@Override public void onUse(Query query) { assert query instanceof BoostQuery == false; assert query instanceof ConstantScoreQuery == false; if (shouldNeverCache(query)) { return; } // call hashCode outside of sync block // in case it's somewhat expensive: int hashCode = query.hashCode(); // we only track hash codes to avoid holding references to possible // large queries; this may cause rare false positives, but at worse // this just means we cache a query that was not in fact used enough: synchronized (this) { recentlyUsedFilters.add(hashCode); } }
@Override public int hashCode() { return 31 * getClass().hashCode() + query.hashCode(); } }
@Override public int hashCode() { int result = luceneQuery.hashCode(); result = 31 * result + (mustNotOccur ? 1 : 0); return result; }
@Override public int hashCode() { int hashCode = 31 * super.hashCode() + spatialHashCellsIds.hashCode(); hashCode = 31 * hashCode + fieldName.hashCode(); return hashCode; }
/** Returns a hash code value for this object.*/ @Override public int hashCode() { int h = super.hashCode(); h = 31 * h + slop; h = 31 * h + terms.hashCode(); h = 31 * h + positions.hashCode(); return h; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + hashFieldName.hashCode(); result = 31 * result + Arrays.hashCode(hashes); result = 31 * result + maxResult; result = 31 * result + luceneFieldName.hashCode(); result = 31 * result + lireFeature.hashCode(); return result; }
@Override public int hashCode() { int h = super.hashCode(); h = 31 * h + Arrays.hashCode(terms); h = 31 * h + Arrays.hashCode(contexts); h = 31 * h + Arrays.hashCode(boosts); h = 31 * h + rewriteMethod.hashCode(); return h; }
@Override public int hashCode() { int hashCode = 31 * super.hashCode() + approximationQuery.hashCode(); hashCode = 31 * hashCode + center.hashCode(); hashCode = 31 * hashCode + Double.hashCode( radius ); hashCode = 31 * hashCode + Objects.hashCode( coordinatesField ); hashCode = 31 * hashCode + Objects.hashCode( latitudeField ); hashCode = 31 * hashCode + Objects.hashCode( longitudeField ); return hashCode; }
int frequency(Query query) { assert query instanceof BoostQuery == false; assert query instanceof ConstantScoreQuery == false; // call hashCode outside of sync block // in case it's somewhat expensive: int hashCode = query.hashCode(); synchronized (this) { return recentlyUsedFilters.frequency(hashCode); } }
@Override public int hashCode() { return super.hashCode() ^ func.hashCode(); } }
/** Returns a hash code value for this object.*/ @Override public int hashCode() { return 31 * query.hashCode() + occur.hashCode(); }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + term.hashCode(); result = 31 * result + luceneFieldName.hashCode(); result = 31 * result + lireFeature.hashCode(); result = Float.floatToIntBits(getBoost()) ^ result; return result; } }
@Override public int hashCode() { return super.hashCode() ^ fieldName.hashCode() ^ qf.hashCode() ^ srndQuery.hashCode(); }
@Override public int hashCode() { int h = classHash(); h = 31 * h + q.hashCode(); h = 31 * h + boostVal.hashCode(); return h; }
@Override public int hashCode() { int result = classHash(); result = 31 * result + indexQuery.hashCode(); result = 31 * result + predicateValueSource.hashCode(); return result; }