Class FieldValueHitQueue<T extends FieldValueHitQueue.Entry>

    • Field Detail

      • fields

        protected final SortField[] fields
        Stores the sort criteria being used.
      • reverseMul

        protected final int[] reverseMul
    • Method Detail

      • create

        public static <T extends FieldValueHitQueue.EntryFieldValueHitQueue<T> create​(SortField[] fields,
                                                                                        int size)
                                                                                 throws IOException
        Creates a hit queue sorted by the given list of fields.

        NOTE: The instances returned by this method pre-allocate a full array of length numHits.

        Parameters:
        fields - SortField array we are sorting by in priority order (highest priority first); cannot be null or empty
        size - The number of hits to retain. Must be greater than zero.
        Throws:
        IOException - if there is a low-level IO error
      • getReverseMul

        public int[] getReverseMul()
      • setComparator

        public void setComparator​(int pos,
                                  FieldComparator<?> comparator)