org.apache.solr.hadoop.dedup
Class SolrInputDocumentComparator

java.lang.Object
  extended by org.apache.solr.hadoop.dedup.SolrInputDocumentComparator
All Implemented Interfaces:
Comparator<SolrInputDocument>

public final class SolrInputDocumentComparator
extends Object
implements Comparator<SolrInputDocument>

Default mechanism of determining which of two Solr documents with the same key is the more recent version.


Nested Class Summary
static class SolrInputDocumentComparator.TimeStampComparator
           
 
Method Summary
 int compare(SolrInputDocument doc1, SolrInputDocument doc2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Method Detail

compare

public int compare(SolrInputDocument doc1,
                   SolrInputDocument doc2)
Specified by:
compare in interface Comparator<SolrInputDocument>


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.