org.infinispan.query.impl.massindex
Class IndexingReducer
java.lang.Object
org.infinispan.query.impl.massindex.IndexingReducer
- All Implemented Interfaces:
- Serializable, Reducer<Object,org.hibernate.search.backend.LuceneWork>
public final class IndexingReducer
- extends Object
- implements Reducer<Object,org.hibernate.search.backend.LuceneWork>
This Reduce doesn't really index the entries but forwards them to the
appropriate index master; the backend knows how to deal with sharding
and this way we avoid unnecessary round trips.
- Author:
- Sanne Grinovero (C) 2012 Red Hat Inc.
- See Also:
- Serialized Form
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexingReducer
public IndexingReducer()
initialize
public void initialize(Cache<?,?> inputCache)
reduce
public org.hibernate.search.backend.LuceneWork reduce(Object reducedKey,
Iterator<org.hibernate.search.backend.LuceneWork> iter)
- Description copied from interface:
Reducer
- Combines/reduces all intermediate values for a particular intermediate key to a single value.
- Specified by:
reduce
in interface Reducer<Object,org.hibernate.search.backend.LuceneWork>
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.