public final class RejectingUpdateConflictResolver extends Object implements UpdateConflictResolver
Constructor and Description |
---|
RejectingUpdateConflictResolver() |
Modifier and Type | Method and Description |
---|---|
Iterator<SolrInputDocument> |
orderUpdates(org.apache.hadoop.io.Text key,
Iterator<SolrInputDocument> updates,
org.apache.hadoop.mapreduce.Reducer.Context ctx)
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.
|
public Iterator<SolrInputDocument> orderUpdates(org.apache.hadoop.io.Text key, Iterator<SolrInputDocument> updates, org.apache.hadoop.mapreduce.Reducer.Context ctx)
UpdateConflictResolver
orderUpdates
in interface UpdateConflictResolver
key
- the document key common to all collidingUpdates mentioned belowupdates
- all updates in the MapReduce job that have a key equal to
uniqueKey
mentioned above. The input order is unspecified.ctx
- The Context
passed from the Reducer
implementations.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.