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 class
private static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBatch
Create a DocumentBatch containing a single InputDocumentstatic DocumentBatch
Create 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
-