Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.util
Class LineFileDocs

    java.lang.Object
      org.apache.lucene.util.LineFileDocs

All Implemented Interfaces:
  Closeable

    public class LineFileDocs

extends Object
implements Closeable

Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

Constructor Summary
`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)

Method Summary
`void` | `close()`
`Document` | `nextDoc()` Note: Document instance is re-used per-thread
`void` | `reset(Random random)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LineFileDocs

    public LineFileDocs(Random random,
                        String path,
                        boolean useDocValues)
                 throws IOException

  If forever is true, we rewind the file at EOF (repeat the docs over and over)

  Throws:
    `IOException`

### LineFileDocs

    public LineFileDocs(Random random)
                 throws IOException

Throws:
  `IOException`

### LineFileDocs

    public LineFileDocs(Random random,
                        boolean useDocValues)
                 throws IOException

Throws:
  `IOException`

Method Detail

### close

    public void close()
               throws IOException

  Specified by:
    `close` in interface `Closeable`
  Throws:
    `IOException`

### reset

    public void reset(Random random)
               throws IOException

  Throws:
    `IOException`

### nextDoc

    public Document nextDoc()
                     throws IOException

  Note: Document instance is re-used per-thread

  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.