public abstract class ToParentBlockJoinFieldComparator extends FieldComparator<Object>
Modifier and Type | Class and Description |
---|---|
static class |
ToParentBlockJoinFieldComparator.Highest
Concrete implementation of
ToParentBlockJoinSortField to sorts the parent docs with the highest values
in the child / nested docs first. |
static class |
ToParentBlockJoinFieldComparator.Lowest
Concrete implementation of
ToParentBlockJoinSortField to sorts the parent docs with the lowest values
in the child / nested docs first. |
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
Modifier and Type | Method and Description |
---|---|
int |
compare(int slot1,
int slot2)
Compare hit at slot1 with hit at slot2.
|
void |
setBottom(int slot)
Set the bottom slot, ie the "weakest" (sorted last)
entry in the queue.
|
FieldComparator<Object> |
setNextReader(AtomicReaderContext context)
Set a new
AtomicReaderContext . |
void |
setTopValue(Object value)
Record the top value, for future calls to
FieldComparator.compareTop(int) . |
Object |
value(int slot)
Return the actual value in the slot.
|
compareBottom, compareTop, compareValues, copy, setScorer
public int compare(int slot1, int slot2)
FieldComparator
compare
in class FieldComparator<Object>
slot1
- first slot to compareslot2
- second slot to comparepublic void setBottom(int slot)
FieldComparator
FieldComparator.compareBottom(int)
is
called, you should compare against this slot. This
will always be called before FieldComparator.compareBottom(int)
.setBottom
in class FieldComparator<Object>
slot
- the currently weakest (sorted last) slot in the queuepublic void setTopValue(Object value)
FieldComparator
FieldComparator.compareTop(int)
. This is only called for searches that
use searchAfter (deep paging), and is called before any
calls to FieldComparator.setNextReader(org.apache.lucene.index.AtomicReaderContext)
.setTopValue
in class FieldComparator<Object>
public FieldComparator<Object> setNextReader(AtomicReaderContext context) throws IOException
FieldComparator
AtomicReaderContext
. All subsequent docIDs are relative to
the current reader (you must add docBase if you need to
map it to a top-level docID).setNextReader
in class FieldComparator<Object>
context
- current reader contextIOException
- if there is a low-level IO errorpublic Object value(int slot)
FieldComparator
value
in class FieldComparator<Object>
slot
- the valueCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.