public abstract class SpanPositionCheckQuery extends SpanQuery implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
class |
SpanPositionCheckQuery.SpanPositionCheckWeight |
| Constructor and Description |
|---|
SpanPositionCheckQuery(SpanQuery match) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FilterSpans.AcceptStatus |
acceptPosition(Spans spans)
Implementing classes are required to return whether the current position is a match for the passed in
"match"
SpanQuery. |
SpanWeight |
createWeight(IndexSearcher searcher,
boolean needsScores)
Create a SpanWeight for this query
|
boolean |
equals(Object o)
Returns true iff
o is equal to this. |
String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getMatch() |
int |
hashCode() |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
getTermContexts, getTermContextsprotected SpanQuery match
public SpanPositionCheckQuery(SpanQuery match)
public SpanQuery getMatch()
public String getField()
SpanQueryprotected abstract FilterSpans.AcceptStatus acceptPosition(Spans spans) throws IOException
SpanQuery.
This is only called if the underlying last Spans.nextStartPosition() for the
match indicated a valid start position.spans - The Spans instance, positioned at the spot to checkIOExceptionDocIdSetIterator.nextDoc()public SpanWeight createWeight(IndexSearcher searcher, boolean needsScores) throws IOException
SpanQuerycreateWeight in class SpanQuerysearcher - the IndexSearcher to be searched acrossneedsScores - if the query needs scoresIOException - on errorpublic Query rewrite(IndexReader reader) throws IOException
Queryrewrite in class SpanQueryIOExceptionpublic boolean equals(Object o)
o is equal to this.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.