org.apache.lucene.search.join
Class ToParentBlockJoinFieldComparator.Highest

java.lang.Object
  extended by org.apache.lucene.search.FieldComparator<Object>
      extended by org.apache.lucene.search.join.ToParentBlockJoinFieldComparator
          extended by org.apache.lucene.search.join.ToParentBlockJoinFieldComparator.Highest
Enclosing class:
ToParentBlockJoinFieldComparator

public static final class ToParentBlockJoinFieldComparator.Highest
extends ToParentBlockJoinFieldComparator

Concrete implementation of ToParentBlockJoinSortField to sorts the parent docs with the highest values in the child / nested docs first.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.search.join.ToParentBlockJoinFieldComparator
ToParentBlockJoinFieldComparator.Highest, ToParentBlockJoinFieldComparator.Lowest
 
Nested classes/interfaces inherited from class org.apache.lucene.search.FieldComparator
FieldComparator.ByteComparator, FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends Number>, FieldComparator.RelevanceComparator, FieldComparator.ShortComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermValComparator
 
Constructor Summary
ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator, Filter parentFilter, Filter childFilter, int spareSlot)
          Create ToParentBlockJoinFieldComparator.Highest
 
Method Summary
 int compareBottom(int parentDoc)
           
 int compareTop(int parentDoc)
           
 void copy(int slot, int parentDoc)
           
 
Methods inherited from class org.apache.lucene.search.join.ToParentBlockJoinFieldComparator
compare, setBottom, setNextReader, setTopValue, value
 
Methods inherited from class org.apache.lucene.search.FieldComparator
compareValues, setScorer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToParentBlockJoinFieldComparator.Highest

public ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator,
                                                Filter parentFilter,
                                                Filter childFilter,
                                                int spareSlot)
Create ToParentBlockJoinFieldComparator.Highest

Parameters:
wrappedComparator - The FieldComparator on the child / nested level.
parentFilter - Filter (must produce FixedBitSet per-segment) that identifies the parent documents.
childFilter - Filter that defines which child / nested documents participates in sorting.
spareSlot - The extra slot inside the wrapped comparator that is used to compare which nested document inside the parent document scope is most competitive.
Method Detail

compareBottom

public int compareBottom(int parentDoc)
                  throws IOException
Specified by:
compareBottom in class FieldComparator<Object>
Throws:
IOException

copy

public void copy(int slot,
                 int parentDoc)
          throws IOException
Specified by:
copy in class FieldComparator<Object>
Throws:
IOException

compareTop

public int compareTop(int parentDoc)
               throws IOException
Specified by:
compareTop in class FieldComparator<Object>
Throws:
IOException


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