Methods Summary |
---|
public final void | close()Describe close method here.
while (_termPositionsQueue.size() > 0)
((TermPositions)_termPositionsQueue.pop()).close();
|
public final int | doc()Describe doc method here.
return _doc;
|
public final int | freq()Describe freq method here.
return _freq;
|
public final boolean | next()Describe next method here.
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()Describe nextPosition method here.
return _posList.next();
|
public int | read(int[] arg0, int[] arg1)Describe read method here.
throw new UnsupportedOperationException();
|
public void | seek(org.apache.lucene.index.Term arg0)Describe seek method here.
throw new UnsupportedOperationException();
|
public void | seek(org.apache.lucene.index.TermEnum termEnum)
throw new UnsupportedOperationException();
|
public final boolean | skipTo(int target)Describe skipTo method here.
while (target > _termPositionsQueue.peek().doc())
{
TermPositions tp = (TermPositions)_termPositionsQueue.pop();
if (tp.skipTo(target))
_termPositionsQueue.put(tp);
else
tp.close();
}
return next();
|