# Uses of Interface
org.apache.lucene.search.LeafFieldComparator

Packages that use LeafFieldComparator
Package
Description
org.apache.lucene.search
Code to search indices.
org.apache.lucene.search.comparators
Comparators, used to compare hits so as to determine their sort order when collecting the top results with `TopFieldCollector`.

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

  Classes in org.apache.lucene.search that implement LeafFieldComparator
  Modifier and Type
  Class
  Description
  `static final class`
  `FieldComparator.RelevanceComparator`
  Sorts by descending relevance.
  `static class`
  `FieldComparator.TermValComparator`
  Sorts by field's natural Term sort order.
  `class`
  `SimpleFieldComparator<T>`
  Base `FieldComparator` implementation that is used for all contexts.
  Methods in org.apache.lucene.search that return LeafFieldComparator
  Modifier and Type
  Method
  Description
  `LeafFieldComparator[]`
  FieldValueHitQueue.`getComparators(LeafReaderContext context)`
  `abstract LeafFieldComparator`
  FieldComparator.`getLeafComparator(LeafReaderContext context)`
  Get a per-segment `LeafFieldComparator` to collect the given `LeafReaderContext`.
  `LeafFieldComparator`
  FieldComparator.RelevanceComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  FieldComparator.TermValComparator.`getLeafComparator(LeafReaderContext context)`
  `final LeafFieldComparator`
  SimpleFieldComparator.`getLeafComparator(LeafReaderContext context)`

- ## Uses of LeafFieldComparator in org.apache.lucene.search.comparators

  Classes in org.apache.lucene.search.comparators that implement LeafFieldComparator
  Modifier and Type
  Class
  Description
  `class`
  `DoubleComparator.DoubleLeafComparator`
  Leaf comparator for `DoubleComparator` that provides skipping functionality
  `class`
  `FloatComparator.FloatLeafComparator`
  Leaf comparator for `FloatComparator` that provides skipping functionality
  `class`
  `IntComparator.IntLeafComparator`
  Leaf comparator for `IntComparator` that provides skipping functionality
  `class`
  `LongComparator.LongLeafComparator`
  Leaf comparator for `LongComparator` that provides skipping functionality
  `class`
  `NumericComparator.NumericLeafComparator`
  Leaf comparator for `NumericComparator` that provides skipping functionality
  Methods in org.apache.lucene.search.comparators that return LeafFieldComparator
  Modifier and Type
  Method
  Description
  `LeafFieldComparator`
  DocComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  DoubleComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  FloatComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  IntComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  LongComparator.`getLeafComparator(LeafReaderContext context)`
  `LeafFieldComparator`
  TermOrdValComparator.`getLeafComparator(LeafReaderContext context)`