Package org.apache.lucene.tests.util
Class LineFileDocs
java.lang.Object
org.apache.lucene.tests.util.LineFileDocs
- All Implemented Interfaces:
Closeable
,AutoCloseable
Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file
created by benchmark's WriteLineDoc task
-
Constructor Summary
ConstructorDescriptionLineFileDocs
(Random random) LineFileDocs
(Random random, String path) If forever is true, we rewind the file at EOF (repeat the docs over and over) -
Method Summary
-
Constructor Details
-
LineFileDocs
If forever is true, we rewind the file at EOF (repeat the docs over and over)- Throws:
IOException
-
LineFileDocs
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
reset
- Throws:
IOException
-
nextDoc
Note: Document instance is re-used per-thread- Throws:
IOException
-