public class MtasSpanPositionSpans extends MtasSpans
Modifier and Type | Field and Description |
---|---|
private int |
currentEndPosition
The current end position.
|
private int |
currentStartPosition
The current start position.
|
private int |
docId
The doc id.
|
private int |
end
The end.
|
private String |
field
The field.
|
private int |
maxPosition
The max position.
|
private int |
minPosition
The min position.
|
private CodecInfo |
mtasCodecInfo
The mtas codec info.
|
private MtasSpanPositionQuery |
query
The query.
|
private int |
start
The start.
|
Constructor and Description |
---|
MtasSpanPositionSpans(MtasSpanPositionQuery query,
CodecInfo mtasCodecInfo,
String field,
int start,
int end)
Instantiates a new mtas span position spans.
|
Modifier and Type | Method and Description |
---|---|
int |
advance(int target) |
org.apache.lucene.search.TwoPhaseIterator |
asTwoPhaseIterator() |
void |
collect(org.apache.lucene.search.spans.SpanCollector collector) |
long |
cost() |
int |
docID() |
int |
endPosition() |
int |
nextDoc() |
int |
nextStartPosition() |
float |
positionsCost() |
int |
startPosition() |
int |
width() |
private MtasSpanPositionQuery query
private String field
private int start
private int end
private int minPosition
private int maxPosition
private int currentStartPosition
private int currentEndPosition
private int docId
private CodecInfo mtasCodecInfo
public MtasSpanPositionSpans(MtasSpanPositionQuery query, CodecInfo mtasCodecInfo, String field, int start, int end)
query
- the querymtasCodecInfo
- the mtas codec infofield
- the fieldstart
- the startend
- the endpublic int nextStartPosition() throws IOException
nextStartPosition
in class org.apache.lucene.search.spans.Spans
IOException
public int startPosition()
startPosition
in class org.apache.lucene.search.spans.Spans
public int endPosition()
endPosition
in class org.apache.lucene.search.spans.Spans
public int width()
width
in class org.apache.lucene.search.spans.Spans
public void collect(org.apache.lucene.search.spans.SpanCollector collector) throws IOException
collect
in class org.apache.lucene.search.spans.Spans
IOException
public int docID()
docID
in class org.apache.lucene.search.DocIdSetIterator
public int nextDoc() throws IOException
nextDoc
in class org.apache.lucene.search.DocIdSetIterator
IOException
public int advance(int target) throws IOException
advance
in class org.apache.lucene.search.DocIdSetIterator
IOException
public long cost()
cost
in class org.apache.lucene.search.DocIdSetIterator
public float positionsCost()
positionsCost
in class org.apache.lucene.search.spans.Spans
public org.apache.lucene.search.TwoPhaseIterator asTwoPhaseIterator()
asTwoPhaseIterator
in class MtasSpans
Copyright © 2018 Meertens Institute. All rights reserved.