Methods Summary |
---|
public int | doc()
return doc;
|
public int | end()
return position + 1;
|
public org.apache.lucene.index.TermPositions | getPositions()
return positions;
|
public boolean | next()
if (count == freq) {
if (!positions.next()) {
doc = Integer.MAX_VALUE;
return false;
}
doc = positions.doc();
freq = positions.freq();
count = 0;
}
position = positions.nextPosition();
count++;
return true;
|
public boolean | skipTo(int target)
// are we already at the correct position?
if (doc >= target) {
return true;
}
if (!positions.skipTo(target)) {
doc = Integer.MAX_VALUE;
return false;
}
doc = positions.doc();
freq = positions.freq();
count = 0;
position = positions.nextPosition();
count++;
return true;
|
public int | start()
return position;
|
public java.lang.String | toString()
return "spans(" + term.toString() + ")@" +
(doc == -1 ? "START" : (doc == Integer.MAX_VALUE) ? "END" : doc + "-" + position);
|