Package org.apache.solr.search.facet
Class SlotAcc.DoubleFuncSlotAcc
- java.lang.Object
-
- org.apache.solr.search.facet.SlotAcc
-
- org.apache.solr.search.facet.SlotAcc.FuncSlotAcc
-
- org.apache.solr.search.facet.SlotAcc.DoubleFuncSlotAcc
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- SlotAcc
public abstract static class SlotAcc.DoubleFuncSlotAcc extends SlotAcc.FuncSlotAcc
-
-
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 double
initialValue
protected double[]
result
-
Fields inherited from class org.apache.solr.search.facet.SlotAcc.FuncSlotAcc
values, valueSource
-
Fields inherited from class org.apache.solr.search.facet.SlotAcc
currentDocBase, currentReaderContext, fcontext
-
-
Constructor Summary
Constructors Constructor Description DoubleFuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots)
DoubleFuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots, double initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(int slotA, int slotB)
Object
getValue(int slot)
void
reset()
Called to reset the acc to a fresh state, ready for reusevoid
resize(SlotAcc.Resizer resizer)
-
Methods inherited from class org.apache.solr.search.facet.SlotAcc.FuncSlotAcc
setNextReader
-
-
-
-
Constructor Detail
-
DoubleFuncSlotAcc
public DoubleFuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots)
-
DoubleFuncSlotAcc
public DoubleFuncSlotAcc(org.apache.lucene.queries.function.ValueSource values, FacetContext fcontext, int numSlots, double initialValue)
-
-
Method Detail
-
reset
public void reset()
Description copied from class:SlotAcc
Called to reset the acc to a fresh state, ready for reuse
-
resize
public void resize(SlotAcc.Resizer resizer)
-
-