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

Packages that use FieldComparator
org.apache.lucene.search: Code to search indices.

Uses of FieldComparator in org.apache.lucene.search

Subclasses of FieldComparator in org.apache.lucene.search
`static class` `FieldComparator.ByteComparator` Parses field's values as byte (using `FieldCache.getBytes(org.apache.lucene.index.AtomicReader, java.lang.String, boolean)` 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.AtomicReader, java.lang.String, boolean)` and sorts by ascending value
`static class` `FieldComparator.FloatComparator` Parses field's values as float (using `FieldCache.getFloats(org.apache.lucene.index.AtomicReader, java.lang.String, boolean)` and sorts by ascending value
`static class` `FieldComparator.IntComparator` Parses field's values as int (using `FieldCache.getInts(org.apache.lucene.index.AtomicReader, java.lang.String, boolean)` and sorts by ascending value
`static class` `FieldComparator.LongComparator` Parses field's values as long (using `FieldCache.getLongs(org.apache.lucene.index.AtomicReader, java.lang.String, boolean)` 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.ShortComparator` Parses field's values as short (using `FieldCache.getShorts(org.apache.lucene.index.AtomicReader, java.lang.String, boolean)` and sorts by ascending value
`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.

Fields in org.apache.lucene.search declared as FieldComparator
`protected FieldComparator<?>[]` `FieldValueHitQueue.comparators`
`protected FieldComparator<?>` `FieldValueHitQueue.firstComparator`

Methods in org.apache.lucene.search that return FieldComparator
`FieldComparator<?>` `SortField.getComparator(int numHits, int sortPos)` Returns the `FieldComparator` to use for sorting.
`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.
`abstract FieldComparator<T>` `FieldComparator.setNextReader(AtomicReaderContext context)` Set a new `AtomicReaderContext`.
`FieldComparator<T>` `FieldComparator.NumericComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Byte>` `FieldComparator.ByteComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Double>` `FieldComparator.DoubleComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Float>` `FieldComparator.FloatComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Short>` `FieldComparator.ShortComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Integer>` `FieldComparator.IntComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Long>` `FieldComparator.LongComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Float>` `FieldComparator.RelevanceComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<Integer>` `FieldComparator.DocComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<BytesRef>` `FieldComparator.TermOrdValComparator.setNextReader(AtomicReaderContext context)`
`FieldComparator<BytesRef>` `FieldComparator.TermValComparator.setNextReader(AtomicReaderContext context)`

Methods in org.apache.lucene.search with parameters of type FieldComparator
`void` `FieldValueHitQueue.setComparator(int pos, FieldComparator<?> comparator)`

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