You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2012/11/20 13:31:55 UTC
svn commit: r1411643 -
/lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java
Author: romseygeek
Date: Tue Nov 20 12:31:55 2012
New Revision: 1411643
URL: http://svn.apache.org/viewvc?rev=1411643&view=rev
Log:
LUCENE-2878: Rename Position* subclasses to Interval*
Modified:
lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java
Modified: lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java?rev=1411643&r1=1411642&r2=1411643&view=diff
==============================================================================
--- lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java (original)
+++ lucene/dev/branches/LUCENE-2878/lucene/core/src/java/org/apache/lucene/search/intervals/IntervalFilterQuery.java Tue Nov 20 12:31:55 2012
@@ -85,16 +85,16 @@ public class IntervalFilterQuery extends
@Override
public Weight createWeight(IndexSearcher searcher) throws IOException {
- return new PositionFilterWeight(inner.createWeight(searcher), searcher);
+ return new IntervalFilterWeight(inner.createWeight(searcher), searcher);
}
- class PositionFilterWeight extends Weight {
+ class IntervalFilterWeight extends Weight {
private final Weight other;
private final Similarity similarity;
private final Similarity.SimWeight stats;
- public PositionFilterWeight(Weight other, IndexSearcher searcher) throws IOException {
+ public IntervalFilterWeight(Weight other, IndexSearcher searcher) throws IOException {
this.other = other;
this.similarity = searcher.getSimilarity();
this.stats = getSimWeight(other.getQuery(), searcher);
@@ -150,7 +150,7 @@ public class IntervalFilterQuery extends
ScorerFactory factory = new ScorerFactory(other, context, topScorer, flags, acceptDocs);
final Scorer scorer = factory.scorer();
Similarity.SloppySimScorer docScorer = similarity.sloppySimScorer(stats, context);
- return scorer == null ? null : new PositionFilterScorer(this, scorer, factory, docScorer);
+ return scorer == null ? null : new IntervalFilterScorer(this, scorer, factory, docScorer);
}
@Override
@@ -192,7 +192,7 @@ public class IntervalFilterQuery extends
}
- final class PositionFilterScorer extends Scorer {
+ final class IntervalFilterScorer extends Scorer {
private final Scorer other;
private IntervalIterator filter;
@@ -200,8 +200,8 @@ public class IntervalFilterQuery extends
private final ScorerFactory factory;
private final Similarity.SloppySimScorer docScorer;
- public PositionFilterScorer(Weight weight, Scorer other, ScorerFactory factory,
- Similarity.SloppySimScorer docScorer) throws IOException {
+ public IntervalFilterScorer(Weight weight, Scorer other, ScorerFactory factory,
+ Similarity.SloppySimScorer docScorer) throws IOException {
super(weight);
this.other = other;
this.factory = factory;