org.hibernate.search.spatial.impl

## Class DistanceComparatorSource

- java.lang.Object
- - org.apache.lucene.search.FieldComparatorSource
  - - org.hibernate.search.spatial.impl.DistanceComparatorSource

-     public class DistanceComparatorSource
      extends FieldComparatorSource

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DistanceComparatorSource(Coordinates center)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `FieldComparator<?>` | `newComparator(String fieldName, int numHits, int sortPos, boolean reversed)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DistanceComparatorSource

          public DistanceComparatorSource(Coordinates center)

  - ### Method Detail

    - #### newComparator

          public FieldComparator<?> newComparator(String fieldName,
                                                  int numHits,
                                                  int sortPos,
                                                  boolean reversed)
                                           throws IOException

      Specified by:
        `newComparator` in class `FieldComparatorSource`
      Throws:
        `IOException`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved