java.lang.Object
org.apache.lucene.monitor.DocumentBatch
- All Implemented Interfaces:
Closeable,AutoCloseable,Supplier<LeafReader>
- Direct Known Subclasses:
DocumentBatch.MultiDocumentBatch,DocumentBatch.SingletonDocumentBatch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBatchCreate a DocumentBatch containing a single InputDocumentstatic DocumentBatchCreate a DocumentBatch containing a set of InputDocuments
-
Constructor Details
-
DocumentBatch
DocumentBatch()
-
-
Method Details
-
of
Create a DocumentBatch containing a single InputDocument- Parameters:
doc- the document to add- Returns:
- the batch containing the input document
-
of
Create a DocumentBatch containing a set of InputDocuments- Parameters:
docs- Collection of documents to add. There must be at least one document in the collection.- Returns:
- the batch containing the input documents
-