## 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.ByteComparator` Parses field's values as byte (using `FieldCache.getBytes(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.DocComparator` Sorts by ascending docID
    `static class` | `FieldComparator.DoubleComparator` Parses field's values as double (using `FieldCache.getDoubles(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.FloatComparator` Parses field's values as float (using `FieldCache.getFloats(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.IntComparator` Parses field's values as int (using `FieldCache.getInts(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.LongComparator` Parses field's values as long (using `FieldCache.getLongs(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.RelevanceComparator` Sorts by descending relevance.
    `static class` | `FieldComparator.ShortComparator` Parses field's values as short (using `FieldCache.getShorts(org.apache.lucene.index.IndexReader, java.lang.String)` and sorts by ascending value
    `static class` | `FieldComparator.StringComparatorLocale` Sorts by a field's value using the Collator for a given Locale.
    `static class` | `FieldComparator.StringOrdValComparator` Sorts by field's natural String sort order, using ordinals.
    `static class` | `FieldComparator.StringValComparator` Sorts by field's natural String sort order.

    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` | SortField.`getComparator(int numHits, int sortPos)` Returns the `FieldComparator` to use for sorting.
    `abstract FieldComparator` | FieldComparatorSource.`newComparator(java.lang.String fieldname, int numHits, int sortPos, boolean reversed)` Creates a comparator for the field in the given index.

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