Package org.apache.lucene.monitor
Class DocumentBatch.SingletonDocumentBatch
- java.lang.Object
-
- org.apache.lucene.monitor.DocumentBatch
-
- org.apache.lucene.monitor.DocumentBatch.SingletonDocumentBatch
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.util.function.Supplier<LeafReader>
- Enclosing class:
- DocumentBatch
private static class DocumentBatch.SingletonDocumentBatch extends DocumentBatch
-
-
Field Summary
Fields Modifier and Type Field Description private LeafReader
reader
-
Constructor Summary
Constructors Modifier Constructor Description private
SingletonDocumentBatch(Analyzer analyzer, Document doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
LeafReader
get()
-
Methods inherited from class org.apache.lucene.monitor.DocumentBatch
of, of
-
-
-
-
Field Detail
-
reader
private final LeafReader reader
-
-
Method Detail
-
get
public LeafReader get()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
-