public final class IndexingReducer extends Object implements Reducer<Object,org.hibernate.search.backend.LuceneWork>
Constructor and Description |
---|
IndexingReducer() |
Modifier and Type | Method and Description |
---|---|
void |
flush()
Since indexing work is done asynchronously in the backend, we need to flush at the end to
make sure we don't return control to user before all work was processed and flushed.
|
void |
initialize(Cache<?,?> inputCache) |
org.hibernate.search.backend.LuceneWork |
reduce(Object reducedKey,
Iterator<org.hibernate.search.backend.LuceneWork> iter)
Combines/reduces all intermediate values for a particular intermediate key to a single value.
|
public void initialize(Cache<?,?> inputCache)
public org.hibernate.search.backend.LuceneWork reduce(Object reducedKey, Iterator<org.hibernate.search.backend.LuceneWork> iter)
Reducer
public void flush()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.