public static final class ToParentBlockJoinFieldComparator.Highest extends ToParentBlockJoinFieldComparator
ToParentBlockJoinSortField to sorts the parent docs with the highest values
in the child / nested docs first.ToParentBlockJoinFieldComparator.Highest, ToParentBlockJoinFieldComparator.LowestFieldComparator.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 and Description |
|---|
ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter 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, setBottom, setNextReader, setTopValue, valuecompareValues, setScorerpublic ToParentBlockJoinFieldComparator.Highest(FieldComparator<Object> wrappedComparator, Filter parentFilter, Filter childFilter, int spareSlot)
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.public int compareBottom(int parentDoc)
throws IOException
compareBottom in class FieldComparator<Object>IOExceptionpublic void copy(int slot,
int parentDoc)
throws IOException
copy in class FieldComparator<Object>IOExceptionpublic int compareTop(int parentDoc)
throws IOException
compareTop in class FieldComparator<Object>IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.