Module org.apache.lucene.sandbox
Class LongAggregationsFacetRecorder.LongAggregationsLeafFacetRecorder
java.lang.Object
org.apache.lucene.sandbox.facet.recorders.LongAggregationsFacetRecorder.LongAggregationsLeafFacetRecorder
- All Implemented Interfaces:
LeafFacetRecorder
- Enclosing class:
LongAggregationsFacetRecorder
private static class LongAggregationsFacetRecorder.LongAggregationsLeafFacetRecorder
extends Object
implements LeafFacetRecorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LongValues[]
private final IntObjectHashMap
<long[]> private final Reducer[]
-
Constructor Summary
ConstructorsConstructorDescriptionLongAggregationsLeafFacetRecorder
(LongValues[] longValues, Reducer[] reducers, IntObjectHashMap<long[]> perOrdinalValues) -
Method Summary
Modifier and TypeMethodDescriptionvoid
record
(int docId, int facetOrd) TODO: Rename: collect? accumulate?
-
Field Details
-
longValues
-
reducers
-
perOrdinalValues
-
-
Constructor Details
-
LongAggregationsLeafFacetRecorder
LongAggregationsLeafFacetRecorder(LongValues[] longValues, Reducer[] reducers, IntObjectHashMap<long[]> perOrdinalValues)
-
-
Method Details
-
record
Description copied from interface:LeafFacetRecorder
TODO: Rename: collect? accumulate?- Specified by:
record
in interfaceLeafFacetRecorder
- Parameters:
docId
- document IDfacetOrd
- facet ordinal- Throws:
IOException
-