IndexDocumentsBatch<T> Class
- java.
lang. Object - com.
azure. search. documents. models. IndexBatchBase<T> - com.
azure. search. documents. indexes. models. IndexDocumentsBatch<T>
- com.
- com.
Type Parameters
- T
The type of documents contained by the indexing batch.
public class IndexDocumentsBatch
extends IndexBatchBase<T>
Contains a batch of document write actions to send to the index.
Constructor Summary
Constructor | Description |
---|---|
IndexDocumentsBatch() |
Constructor of IndexDocumentsBatch<T>. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Index |
addActions(Iterable<IndexAction<T>> actions)
Adds document index actions to the batch. |
Index |
addDeleteActions(Iterable<T> documents)
Adds document delete actions to the batch. |
Index |
addDeleteActions(String keyName, Iterable<String> keyValues)
Adds document delete actions based on key IDs to the batch. |
Index |
addMergeActions(Iterable<T> documents)
Adds merge document actions to the batch. |
Index |
addMergeOrUploadActions(Iterable<T> documents)
Adds merge or upload document actions to the batch. |
Index |
addUploadActions(Iterable<T> documents)
Adds upload document actions to the batch. |
Methods inherited from IndexBatchBase
Methods inherited from java.lang.Object
Constructor Details
IndexDocumentsBatch
public IndexDocumentsBatch()
Constructor of IndexDocumentsBatch<T>.
Method Details
addActions
public IndexDocumentsBatch
Adds document index actions to the batch.
Parameters:
Returns:
addDeleteActions
public IndexDocumentsBatch
Adds document delete actions to the batch.
Parameters:
Returns:
addDeleteActions
public IndexDocumentsBatch
Adds document delete actions based on key IDs to the batch.
Parameters:
Returns:
addMergeActions
public IndexDocumentsBatch
Adds merge document actions to the batch.
Parameters:
Returns:
addMergeOrUploadActions
public IndexDocumentsBatch
Adds merge or upload document actions to the batch.
Parameters:
Returns:
addUploadActions
public IndexDocumentsBatch
Adds upload document actions to the batch.
Parameters:
Returns:
Applies to
Azure SDK for Java