public interface UpdateConflictResolver
Configurable
then the Hadoop Reducer will call
Configurable.setConf(org.apache.hadoop.conf.Configuration)
on
instance construction and pass the standard Hadoop configuration information.Modifier and Type | Method and Description |
---|---|
Iterator<SolrInputDocument> |
orderUpdates(org.apache.hadoop.io.Text uniqueKey,
Iterator<SolrInputDocument> collidingUpdates,
org.apache.hadoop.mapreduce.Reducer.Context context)
Given a list of all colliding document updates for the same unique document
key, this method returns zero or more documents in an application specific
order.
|
Iterator<SolrInputDocument> orderUpdates(org.apache.hadoop.io.Text uniqueKey, Iterator<SolrInputDocument> collidingUpdates, org.apache.hadoop.mapreduce.Reducer.Context context)
uniqueKey
- the document key common to all collidingUpdates mentioned belowcollidingUpdates
- all updates in the MapReduce job that have a key equal to
uniqueKey
mentioned above. The input order is unspecified.context
- The Context
passed from the Reducer
implementations.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.