abstract class DocumentBatch extends java.lang.Object implements java.io.Closeable, java.util.function.Supplier<LeafReader>
Modifier and Type | Class and Description |
---|---|
private static class |
DocumentBatch.MultiDocumentBatch |
private static class |
DocumentBatch.SingletonDocumentBatch |
Constructor and Description |
---|
DocumentBatch() |
Modifier and Type | Method and Description |
---|---|
static DocumentBatch |
of(Analyzer analyzer,
Document... docs)
Create a DocumentBatch containing a set of InputDocuments
|
static DocumentBatch |
of(Analyzer analyzer,
Document doc)
Create a DocumentBatch containing a single InputDocument
|
public static DocumentBatch of(Analyzer analyzer, Document doc)
doc
- the document to addpublic static DocumentBatch of(Analyzer analyzer, Document... docs)
docs
- Collection of documents to add