你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈