public abstract class DocValuesAcc extends SlotAcc
DocValuesSlotAcc.Resizer, SlotAcc.SlotContextcurrentDocBase, currentReaderContext, fcontext| Constructor and Description |
|---|
DocValuesAcc(org.apache.solr.search.facet.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, setValuespublic DocValuesAcc(org.apache.solr.search.facet.FacetContext fcontext,
SchemaField sf)
throws IOException
IOExceptionpublic void collect(int doc,
int slot,
IntFunction<SlotAcc.SlotContext> slotContext)
throws IOException
SlotAccSlotAcc.collect(DocSet,int,IntFunction) but it's also neccessary if this accumulator
is used for sorting.collect in class SlotAccdoc - 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.IOExceptionprotected abstract void collectValues(int doc,
int slot)
throws IOException
IOExceptionprotected abstract boolean advanceExact(int doc)
throws IOException
org.apache.lucene.index.DocValuesIterator#advanceExact(int)
returns whether or not given doc has valueIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.