public class LineFileDocs
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
LineFileDocs(java.util.Random random) |
LineFileDocs(java.util.Random random,
java.lang.String path)
If forever is true, we rewind the file at EOF (repeat
the docs over and over)
|
public LineFileDocs(java.util.Random random, java.lang.String path) throws java.io.IOException
java.io.IOException
public LineFileDocs(java.util.Random random) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void reset(java.util.Random random) throws java.io.IOException
java.io.IOException
public org.apache.lucene.document.Document nextDoc() throws java.io.IOException
java.io.IOException