org.hibernate.search.backend.impl
Interface StreamingOperationSelectionDelegate
public interface StreamingOperationSelectionDelegate
Sends a single operation to the related backends, considering the sharding strategy.
This delegates to org.hibernate.search.indexes.spi.IndexManager#performStreamOperation(LuceneWork, boolean)
so it's suited for streams of many LuceneWork operations which don't need strict ordering.
- Author:
- Sanne Grinovero
performStreamOperation
void performStreamOperation(LuceneWork work,
IndexShardingStrategy shardingStrategy,
IndexingMonitor monitor,
boolean forceAsync)
- The LuceneWork must be applied to different indexes.
- Parameters:
work - the work to split.shardingStrategy - the Sharding strategy is usually needed to identify affected Directories.monitor - to receive notification of indexing operationsforceAsync - if true, the invocation will not block to wait for it being applied.
When false this will depend on the backend configuration.
Copyright © 2006-2013 Hibernate. All Rights Reserved.