public class LineFileDocs extends Object implements Closeable
| Constructor and Description |
|---|
LineFileDocs(Random random) |
LineFileDocs(Random random,
boolean useDocValues) |
LineFileDocs(Random random,
String path,
boolean useDocValues)
If forever is true, we rewind the file at EOF (repeat
the docs over and over)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Document |
nextDoc()
Note: Document instance is re-used per-thread
|
void |
reset(Random random) |
public LineFileDocs(Random random, String path, boolean useDocValues) throws IOException
IOExceptionpublic LineFileDocs(Random random) throws IOException
IOExceptionpublic LineFileDocs(Random random, boolean useDocValues) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void reset(Random random) throws IOException
IOExceptionpublic Document nextDoc() throws IOException
IOExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.