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)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.lucene.document.Document |
nextDoc()
Note: Document instance is re-used per-thread
|
void |
reset(java.util.Random random) |
public LineFileDocs(java.util.Random random,
java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic LineFileDocs(java.util.Random random)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void reset(java.util.Random random)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.lucene.document.Document nextDoc()
throws java.io.IOException
java.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.