## Uses of Class
org.apache.lucene.search.FieldComparator

- Packages that use FieldComparator
  Package | Description
  --- | ---
  org.apache.lucene.search | Code to search indices.

- - ### Uses of FieldComparator in org.apache.lucene.search

    Subclasses of FieldComparator in org.apache.lucene.search
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `FieldComparator.DocComparator` Sorts by ascending docID
    `static class` | `FieldComparator.DoubleComparator` Parses field's values as double (using `LeafReader.getNumericDocValues(java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.FloatComparator` Parses field's values as float (using `LeafReader.getNumericDocValues(String)` and sorts by ascending value
    `static class` | `FieldComparator.IntComparator` Parses field's values as int (using `LeafReader.getNumericDocValues(String)` and sorts by ascending value
    `static class` | `FieldComparator.LongComparator` Parses field's values as long (using `LeafReader.getNumericDocValues(String)` and sorts by ascending value
    `static class` | `FieldComparator.NumericComparator<T extends Number>` Base FieldComparator class for numeric types
    `static class` | `FieldComparator.RelevanceComparator` Sorts by descending relevance.
    `static class` | `FieldComparator.TermOrdValComparator` Sorts by field's natural Term sort order, using ordinals.
    `static class` | `FieldComparator.TermValComparator` Sorts by field's natural Term sort order.
    `class` | `SimpleFieldComparator<T>` Base `FieldComparator` implementation that is used for all contexts.

    Fields in org.apache.lucene.search declared as FieldComparator
    Modifier and Type | Field and Description
    --- | ---
    `protected FieldComparator<?>[]` | FieldValueHitQueue.`comparators`

    Methods in org.apache.lucene.search that return FieldComparator
    Modifier and Type | Method and Description
    --- | ---
    `FieldComparator<?>` | SortedSetSortField.`getComparator(int numHits, int sortPos)`
    `FieldComparator<?>` | SortField.`getComparator(int numHits, int sortPos)` Returns the `FieldComparator` to use for sorting.
    `FieldComparator<?>` | SortedNumericSortField.`getComparator(int numHits, int sortPos)`
    `FieldComparator<?>[]` | FieldValueHitQueue.`getComparators()`
    `abstract FieldComparator<?>` | FieldComparatorSource.`newComparator(String fieldname, int numHits, int sortPos, boolean reversed)` Creates a comparator for the field in the given index.

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