public static final class ToParentBlockJoinFieldComparator.Lowest extends ToParentBlockJoinFieldComparator
ToParentBlockJoinSortField
to sorts the parent docs with the lowest 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.Lowest(FieldComparator<Object> wrappedComparator,
Filter parentFilter,
Filter childFilter,
int spareSlot)
Create ToParentBlockJoinFieldComparator.Lowest
|
Modifier and Type | Method and Description |
---|---|
int |
compareBottom(int parentDoc) |
int |
compareTop(int parentDoc) |
void |
copy(int slot,
int parentDoc) |
compare, setBottom, setNextReader, setTopValue, value
compareValues, setScorer
public ToParentBlockJoinFieldComparator.Lowest(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 compareTop(int parentDoc) throws IOException
compareTop
in class FieldComparator<Object>
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.