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.Lowest
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 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 |
compareDocToValue(int parentDoc,
Object value) |
void |
copy(int slot,
int parentDoc) |
compare, setBottom, setNextReader, value
compareValues, setScorer
public 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>
IOException
public void copy(int slot, int parentDoc) throws IOException
copy
in class FieldComparator<Object>
IOException
public int compareDocToValue(int parentDoc, Object value) throws IOException
compareDocToValue
in class FieldComparator<Object>
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.