Package org.apache.solr.search.facet
Class SlotAcc.FuncSlotAcc
- java.lang.Object
-
- org.apache.solr.search.facet.SlotAcc
-
- org.apache.solr.search.facet.SlotAcc.FuncSlotAcc
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
SlotAcc.DoubleFuncSlotAcc
,SlotAcc.LongFuncSlotAcc
- Enclosing class:
- SlotAcc
public abstract static class SlotAcc.FuncSlotAcc extends SlotAcc
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.search.facet.SlotAcc
SlotAcc.DoubleFuncSlotAcc, SlotAcc.FuncSlotAcc, SlotAcc.IntSlotAcc, SlotAcc.LongFuncSlotAcc, SlotAcc.Resizer, SlotAcc.SlotContext
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.queries.function.FunctionValues
values
protected org.apache.lucene.queries.function.ValueSource
valueSource
-
Fields inherited from class org.apache.solr.search.facet.SlotAcc
currentDocBase, currentReaderContext, fcontext
-
-
Constructor Summary
Constructors Constructor Description FuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setNextReader(org.apache.lucene.index.LeafReaderContext readerContext)
NOTE: this currently detects when it is being reused and calls resetIterators by comparing reader ords with previous calls to setNextReader.
-
-
-
Constructor Detail
-
FuncSlotAcc
public FuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots)
-
-
Method Detail
-
setNextReader
public void setNextReader(org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
Description copied from class:SlotAcc
NOTE: this currently detects when it is being reused and calls resetIterators by comparing reader ords with previous calls to setNextReader. For this reason, current users must call setNextReader in segment order. Failure to do so will cause worse performance.- Overrides:
setNextReader
in classSlotAcc
- Throws:
IOException
-
-