Class FieldComparatorSource

  • public abstract class FieldComparatorSource
    extends Object
    Provides a FieldComparator for custom field sorting.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • FieldComparatorSource

        public FieldComparatorSource()
    • Method Detail

      • newComparator

        public abstract FieldComparator<?> newComparator​(String fieldname,
                                                         int numHits,
                                                         Pruning pruning,
                                                         boolean reversed)
        Creates a comparator for the field in the given index.
        fieldname - Name of the field to create comparator for.