org.apache.lucene.index
Class DocTermOrds.TermOrdsIterator

java.lang.Object
  extended by org.apache.lucene.index.DocTermOrds.TermOrdsIterator
Enclosing class:
DocTermOrds

public class DocTermOrds.TermOrdsIterator
extends Object

Iterates over the ords for a single document.


Method Summary
 int read(int[] buffer)
          Buffer must be at least 5 ints long.
 DocTermOrds.TermOrdsIterator reset(int docID)
          Reset the iterator on a new document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read(int[] buffer)
Buffer must be at least 5 ints long. Returns number of term ords placed into buffer; if this count is less than buffer.length then that is the end.


reset

public DocTermOrds.TermOrdsIterator reset(int docID)
Reset the iterator on a new document.



Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.