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.LowestFieldComparator.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, valuegetLeafComparator, setScorercompareValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetBottom, setScorerpublic 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 LeafFieldComparatorIOExceptionpublic void copy(int slot,
int parentDoc)
throws IOException
copy in interface LeafFieldComparatorIOExceptionpublic int compareTop(int parentDoc)
throws IOException
compareTop in interface LeafFieldComparatorIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.