SearchIndexingBufferedAsyncSender<T> Class
- java.
lang. Object - com.
azure. search. documents. SearchIndexingBufferedAsyncSender<T>
- com.
Type Parameters
- T
The type of the document handled by this buffered indexing sender.
public final class SearchIndexingBufferedAsyncSender
This class provides a buffered sender that contains operations for conveniently indexing documents to an Azure Search index.
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
addActions(Collection<IndexAction<T>> actions)
Adds document index actions to the batch. |
Mono<Void> |
addDeleteActions(Collection<T> documents)
Adds delete document actions to the batch. |
Mono<Void> |
addMergeActions(Collection<T> documents)
Adds merge document actions to the batch. |
Mono<Void> |
addMergeOrUploadActions(Collection<T> documents)
Adds merge or upload document actions to the batch. |
Mono<Void> |
addUploadActions(Collection<T> documents)
Adds upload document actions to the batch. |
Mono<Void> |
close()
Closes the buffered sender, any documents remaining in the batch will be sent to the Search index for indexing. |
Mono<Void> |
flush()
Sends the current batch of documents to be indexed. |
Collection<Index |
getActions()
Gets the IndexAction<T> in the batch that are ready to be indexed. |
Methods inherited from java.lang.Object
Method Details
addActions
public Mono
Adds document index actions to the batch.
If the client is enabled for automatic batch sending, adding documents may trigger the batch to be sent for indexing.
Parameters:
Returns:
addDeleteActions
public Mono
Adds delete document actions to the batch.
If the client is enabled for automatic batch sending, adding documents may trigger the batch to be sent for indexing.
Parameters:
Returns:
addMergeActions
public Mono
Adds merge document actions to the batch.
If the client is enabled for automatic batch sending, adding documents may trigger the batch to be sent for indexing.
Parameters:
Returns:
addMergeOrUploadActions
public Mono
Adds merge or upload document actions to the batch.
If the client is enabled for automatic batch sending, adding documents may trigger the batch to be sent for indexing.
Parameters:
Returns:
addUploadActions
public Mono
Adds upload document actions to the batch.
If the client is enabled for automatic batch sending, adding documents may trigger the batch to be sent for indexing.
Parameters:
Returns:
close
public Mono
Closes the buffered sender, any documents remaining in the batch will be sent to the Search index for indexing.
Once the buffered sender has been closed any attempts to add documents or flush it will cause an IllegalStateException to be thrown.
Returns:
flush
public Mono
Sends the current batch of documents to be indexed.
Returns:
getActions
public Collection
Gets the IndexAction<T> in the batch that are ready to be indexed.
Returns:
Applies to
Azure SDK for Java