Module org.apache.lucene.sandbox
Class LongRangeFacetCutter.LongRangeMultivaluedLeafFacetCutter
java.lang.Object
org.apache.lucene.sandbox.facet.cutters.ranges.LongRangeFacetCutter.LongRangeMultivaluedLeafFacetCutter
- All Implemented Interfaces:
LeafFacetCutter,OrdinalIterator
- Direct Known Subclasses:
NonOverlappingLongRangeFacetCutter.NonOverlappingLongRangeMultiValueLeafFacetCutter,OverlappingLongRangeFacetCutter.OverlappingMultivaluedRangeLeafFacetCutter
- Enclosing class:
LongRangeFacetCutter
abstract static class LongRangeFacetCutter.LongRangeMultivaluedLeafFacetCutter
extends Object
implements LeafFacetCutter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final long[](package private) final IntervalTrackerprivate final MultiLongValues(package private) final int[](package private) IntervalTrackerFields inherited from interface org.apache.lucene.sandbox.facet.iterators.OrdinalIterator
EMPTY, NO_MORE_ORDS -
Constructor Summary
ConstructorsConstructorDescriptionLongRangeMultivaluedLeafFacetCutter(MultiLongValues longValues, long[] boundaries, int[] pos) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadvanceExact(int doc) advance to the next doc(package private) voidmaybeRollUp(IntervalTracker rollUpInto) private intprocessValue(long v, int lastIntervalSeen) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.sandbox.facet.iterators.OrdinalIterator
nextOrd, toArray
-
Field Details
-
multiLongValues
-
boundaries
private final long[] boundaries -
pos
final int[] pos -
elementaryIntervalTracker
-
requestedIntervalTracker
IntervalTracker requestedIntervalTracker
-
-
Constructor Details
-
LongRangeMultivaluedLeafFacetCutter
LongRangeMultivaluedLeafFacetCutter(MultiLongValues longValues, long[] boundaries, int[] pos)
-
-
Method Details
-
advanceExact
Description copied from interface:LeafFacetCutteradvance to the next doc- Specified by:
advanceExactin interfaceLeafFacetCutter- Throws:
IOException
-
processValue
private int processValue(long v, int lastIntervalSeen) -
maybeRollUp
-