public static final class ToParentBlockJoinFieldComparator.Highest extends ToParentBlockJoinFieldComparator implements LeafFieldComparator
ToParentBlockJoinSortField
to sorts the parent docs with the highest values
in the child / nested docs first.ToParentBlockJoinFieldComparator.Highest, ToParentBlockJoinFieldComparator.Lowest
FieldComparator.DocComparator, FieldComparator.DoubleComparator, FieldComparator.FloatComparator, FieldComparator.IntComparator, FieldComparator.LongComparator, FieldComparator.NumericComparator<T extends Number>, FieldComparator.RelevanceComparator, FieldComparator.TermOrdValComparator, FieldComparator.TermValComparator
Constructor and Description |
---|
ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator,
BitDocIdSetFilter parentFilter,
BitDocIdSetFilter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Highest
|
Modifier and Type | Method and Description |
---|---|
int |
compareBottom(int parentDoc) |
int |
compareTop(int parentDoc) |
void |
copy(int slot,
int parentDoc) |
compare, doSetNextReader, setBottom, setTopValue, value
getLeafComparator, setScorer
compareValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBottom, setScorer
public ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator, BitDocIdSetFilter parentFilter, BitDocIdSetFilter childFilter, int spareSlot)
wrappedComparator
- The LeafFieldComparator
on the child / nested level.parentFilter
- Filter 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.public int compareBottom(int parentDoc) throws IOException
compareBottom
in interface LeafFieldComparator
IOException
public void copy(int slot, int parentDoc) throws IOException
copy
in interface LeafFieldComparator
IOException
public int compareTop(int parentDoc) throws IOException
compareTop
in interface LeafFieldComparator
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.