public abstract class DocValuesAcc extends SlotAcc
DocValues
SlotAcc.Resizer, SlotAcc.SlotContext
currentDocBase, currentReaderContext, fcontext
Constructor and Description |
---|
DocValuesAcc(FacetContext fcontext,
SchemaField sf) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
advanceExact(int doc)
Wrapper to
org.apache.lucene.index.DocValuesIterator#advanceExact(int)
returns whether or not given doc has value |
void |
collect(int doc,
int slot,
IntFunction<SlotAcc.SlotContext> slotContext)
All subclasses must override this method to collect documents.
|
protected abstract void |
collectValues(int doc,
int slot) |
close, collect, compare, getValue, reset, resetIterators, resize, setNextReader, setValues
public DocValuesAcc(FacetContext fcontext, SchemaField sf) throws IOException
IOException
public void collect(int doc, int slot, IntFunction<SlotAcc.SlotContext> slotContext) throws IOException
SlotAcc
SlotAcc.collect(DocSet, int, IntFunction)
but it's also neccessary if this accumulator
is used for sorting.collect
in class SlotAcc
doc
- Single Segment docId (relative to the current LeafReaderContext
to collectslot
- The slot number to collect this document inslotContext
- A callback that can be used for Accumulators that would like additional info
about the current slot -- the IntFunction
is only garunteed to be valid for
the current slot, and the SlotAcc.SlotContext
returned is only valid for the duration
of the collect()
call.IOException
protected abstract void collectValues(int doc, int slot) throws IOException
IOException
protected abstract boolean advanceExact(int doc) throws IOException
org.apache.lucene.index.DocValuesIterator#advanceExact(int)
returns whether or not given doc
has valueIOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.