org.apache.solr.analytics.accumulator

## Class FacetingAccumulator.EntryComparator

- java.lang.Object
- - org.apache.solr.analytics.accumulator.FacetingAccumulator.EntryComparator

- All Implemented Interfaces:
    Comparator<Map.Entry<String,Expression[]>>
  Enclosing class:
    FacetingAccumulator

      public static class FacetingAccumulator.EntryComparator
      extends Object
      implements Comparator<Map.Entry<String,Expression[]>>

  A comparator to compare expression values for field facet sorting.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EntryComparator(Comparator<Expression> comp, int comparatorExpressionPlace)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Map.Entry<String,Expression[]> o1, Map.Entry<String,Expression[]> o2)`

    - ### 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`

- - ### Constructor Detail

    - #### EntryComparator

          public EntryComparator(Comparator<Expression> comp,
                                 int comparatorExpressionPlace)

  - ### Method Detail

    - #### compare

          public int compare(Map.Entry<String,Expression[]> o1,
                             Map.Entry<String,Expression[]> o2)

      Specified by:
        `compare` in interface `Comparator<Map.Entry<String,Expression[]>>`

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