public class LineFileDocs extends Object implements Closeable
Constructor and Description |
---|
LineFileDocs(Random random) |
LineFileDocs(Random random,
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() |
Document |
nextDoc()
Note: Document instance is re-used per-thread
|
void |
reset(Random random) |
public LineFileDocs(Random random, String path) throws IOException
IOException
public LineFileDocs(Random random) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void reset(Random random) throws IOException
IOException
public Document nextDoc() throws IOException
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.