public class MtasSpanFollowedByQuery extends MtasSpanQuery
Modifier and Type | Class and Description |
---|---|
protected static class |
MtasSpanFollowedByQuery.MtasSpanFollowedByQuerySpans
The Class MtasSpanFollowedByQuerySpans.
|
private static class |
MtasSpanFollowedByQuery.MtasSpanFollowedByQueryWeight
The Class MtasSpanFollowedByQueryWeight.
|
protected class |
MtasSpanFollowedByQuery.SpanFollowedByWeight
The Class SpanFollowedByWeight.
|
Modifier and Type | Field and Description |
---|---|
private String |
field
The field.
|
private MtasSpanQuery |
q1
The q 1.
|
private MtasSpanQuery |
q2
The q 2.
|
Constructor and Description |
---|
MtasSpanFollowedByQuery(MtasSpanQuery q1,
MtasSpanQuery q2)
Instantiates a new mtas span followed by query.
|
Modifier and Type | Method and Description |
---|---|
MtasSpanWeight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores,
float boost) |
void |
disableTwoPhaseIterator()
Disable two phase iterator.
|
boolean |
equals(Object obj) |
String |
getField() |
protected Map<org.apache.lucene.index.Term,org.apache.lucene.index.TermContext> |
getTermContexts(List<MtasSpanFollowedByQuery.MtasSpanFollowedByQueryWeight> items)
Gets the term contexts.
|
int |
hashCode() |
boolean |
isMatchAllPositionsQuery() |
MtasSpanQuery |
rewrite(org.apache.lucene.index.IndexReader reader) |
String |
toString(String field) |
getMaximumWidth, getMinimumWidth, getWidth, isSinglePositionQuery, setWidth, twoPhaseIteratorAllowed
private String field
private MtasSpanQuery q1
private MtasSpanQuery q2
public MtasSpanFollowedByQuery(MtasSpanQuery q1, MtasSpanQuery q2)
q1
- the q 1q2
- the q 2public String getField()
getField
in class org.apache.lucene.search.spans.SpanQuery
public MtasSpanWeight createWeight(org.apache.lucene.search.IndexSearcher searcher, boolean needsScores, float boost) throws IOException
createWeight
in class org.apache.lucene.search.spans.SpanQuery
IOException
protected Map<org.apache.lucene.index.Term,org.apache.lucene.index.TermContext> getTermContexts(List<MtasSpanFollowedByQuery.MtasSpanFollowedByQueryWeight> items)
items
- the itemspublic String toString(String field)
toString
in class org.apache.lucene.search.Query
public boolean equals(Object obj)
equals
in class MtasSpanQuery
public int hashCode()
hashCode
in class MtasSpanQuery
public MtasSpanQuery rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class MtasSpanQuery
IOException
public void disableTwoPhaseIterator()
MtasSpanQuery
disableTwoPhaseIterator
in class MtasSpanQuery
public boolean isMatchAllPositionsQuery()
isMatchAllPositionsQuery
in class MtasSpanQuery
Copyright © 2018 Meertens Institute. All rights reserved.