Class FieldComparator.NumericComparator<T extends java.lang.Number>

    • Constructor Detail

      • NumericComparator

        public NumericComparator​(java.lang.String field,
                                 T missingValue)
    • Method Detail

      • setNextReader

        public FieldComparator<T> setNextReader​(AtomicReaderContext context)
                                         throws java.io.IOException
        Description copied from class: FieldComparator
        Set a new AtomicReaderContext. All subsequent docIDs are relative to the current reader (you must add docBase if you need to map it to a top-level docID).
        Specified by:
        setNextReader in class FieldComparator<T extends java.lang.Number>
        Parameters:
        context - current reader context
        Returns:
        the comparator to use for this segment; most comparators can just return "this" to reuse the same comparator across segments
        Throws:
        java.io.IOException - if there is a low-level IO error