/** Returns true if <code>o</code> is equal to this. */ @Override public boolean equals(Object o) { if (o == null || !(o instanceof BooleanClause)) return false; BooleanClause other = (BooleanClause)o; return this.query.equals(other.query) && this.occur == other.occur; }
private boolean equalsTo(BoostQuery other) { return query.equals(other.query) && Float.floatToIntBits(boost) == Float.floatToIntBits(other.boost); }
@Override public boolean equals(Object other) { return sameClassAs(other) && query.equals(((ConstantScoreQuery) other).query); }
@Override public boolean equals(Object o) { if (!(o instanceof QueryWrapperBitSetProducer)) return false; return this.query.equals(((QueryWrapperBitSetProducer) o).query); }
/** Returns true if <code>o</code> is equal to this. */ @Override public boolean equals(Object o) { if (o == null || !(o instanceof BooleanClause)) return false; BooleanClause other = (BooleanClause)o; return this.query.equals(other.query) && this.occur == other.occur; }
@Override public boolean equals(Object o) { if (!(o instanceof QueryWrapperBitSetProducer)) return false; return this.query.equals(((QueryWrapperBitSetProducer) o).query); }
@Override public boolean equals(Object o) { if (QueryValueSource.class != o.getClass()) return false; QueryValueSource other = (QueryValueSource)o; return this.q.equals(other.q) && this.defVal==other.defVal; }
private boolean equalsTo(CustomScoreQuery other) { return subQuery.equals(other.subQuery) && scoringQueries.length == other.scoringQueries.length && Arrays.equals(scoringQueries, other.scoringQueries); }
@Override public boolean equals(Object o) { if (sameClassAs(o) == false) return false; LateParsingQuery that = (LateParsingQuery) o; if (minChildren != that.minChildren) return false; if (maxChildren != that.maxChildren) return false; if (!toQuery.equals(that.toQuery)) return false; if (!innerQuery.equals(that.innerQuery)) return false; if (!joinField.equals(that.joinField)) return false; return scoreMode == that.scoreMode; }
@Override public boolean equals(Object obj) { if (super.equals(obj) == false) { return false; } BlendedTermQuery that = (BlendedTermQuery) obj; return Arrays.equals(terms, that.terms) && Arrays.equals(contexts, that.contexts) && Arrays.equals(boosts, that.boosts) && rewriteMethod.equals(that.rewriteMethod); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof FunctionRangeQuery)) return false; if (!super.equals(o)) return false; FunctionRangeQuery that = (FunctionRangeQuery) o; return Objects.equals(includeLower, that.includeLower) && Objects.equals(includeUpper, that.includeUpper) && Objects.equals(valueSource, that.valueSource) && Objects.equals(lowerVal, that.lowerVal) && Objects.equals(upperVal, that.upperVal); }
@Override public final boolean equals(final Object o) { if (super.equals(o) == false) { return false; } MultiTermQueryDocValuesWrapper that = (MultiTermQueryDocValuesWrapper) o; return query.equals(that.query); }
@Override public boolean equals(Object o) { if (super.equals(o) == false) { return false; } return this.query.equals(((QueryWrapperFilter)o).query); }
@Override public boolean equals(Object obj) { if (super.equals(obj) == false) { return false; } ValueSourceQuery other = (ValueSourceQuery) obj; return range.equals(other.range) && Objects.equals(fastMatchQuery, other.fastMatchQuery) && valueSource.equals(other.valueSource); }
@Override public final boolean equals(final Object o) { if (super.equals(o) == false) { return false; } final MultiTermQueryConstantScoreWrapper<?> that = (MultiTermQueryConstantScoreWrapper<?>) o; return this.query.equals(that.query); }