org.apache.solr.hadoop.dedup

## Class SolrInputDocumentComparator

- java.lang.Object
- - 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

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SolrInputDocumentComparator.TimeStampComparator`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Method Detail

    - #### compare

          public int compare(SolrInputDocument doc1,
                             SolrInputDocument doc2)

      Specified by:
        `compare` in interface `Comparator<SolrInputDocument>`

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