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() |
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.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 Document nextDoc() throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.