Methods Summary |
---|
public final void | close()
while (_termPositionsQueue.size() > 0)
((TermPositions) _termPositionsQueue.pop()).close();
|
public final int | doc()
return _doc;
|
public final int | freq()
return _freq;
|
public byte[] | getPayload(byte[] data, int offset)Not implemented.
throw new UnsupportedOperationException();
|
public int | getPayloadLength()Not implemented.
throw new UnsupportedOperationException();
|
public boolean | isPayloadAvailable()
return false;
|
public final boolean | next()
if (_termPositionsQueue.size() == 0)
return false;
_posList.clear();
_doc = _termPositionsQueue.peek().doc();
TermPositions tp;
do {
tp = _termPositionsQueue.peek();
for (int i = 0; i < tp.freq(); i++)
_posList.add(tp.nextPosition());
if (tp.next())
_termPositionsQueue.adjustTop();
else {
_termPositionsQueue.pop();
tp.close();
}
} while (_termPositionsQueue.size() > 0 && _termPositionsQueue.peek().doc() == _doc);
_posList.sort();
_freq = _posList.size();
return true;
|
public final int | nextPosition()
return _posList.next();
|
public int | read(int[] arg0, int[] arg1)Not implemented.
throw new UnsupportedOperationException();
|
public void | seek(org.apache.lucene.index.Term arg0)Not implemented.
throw new UnsupportedOperationException();
|
public void | seek(org.apache.lucene.index.TermEnum termEnum)Not implemented.
throw new UnsupportedOperationException();
|
public final boolean | skipTo(int target)
while (_termPositionsQueue.peek() != null && target > _termPositionsQueue.peek().doc()) {
TermPositions tp = (TermPositions) _termPositionsQueue.pop();
if (tp.skipTo(target))
_termPositionsQueue.put(tp);
else
tp.close();
}
return next();
|