Package org.apache.lucene.util
Class NumericUtils.IntRangeBuilder
- java.lang.Object
-
- org.apache.lucene.util.NumericUtils.IntRangeBuilder
-
- Enclosing class:
- NumericUtils
public abstract static class NumericUtils.IntRangeBuilder extends java.lang.Object
Callback forNumericUtils.splitIntRange(org.apache.lucene.util.NumericUtils.IntRangeBuilder, int, int, int)
. You need to overwrite only one of the methods.- Since:
- 2.9, API changed non backwards-compliant in 4.0
-
-
Constructor Summary
Constructors Constructor Description IntRangeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRange(int min, int max, int shift)
Overwrite this method, if you like to receive the raw int range bounds.void
addRange(BytesRef minPrefixCoded, BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
-
-
-
Method Detail
-
addRange
public void addRange(BytesRef minPrefixCoded, BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds. You can directly build classical range (inclusive) queries from them.
-
addRange
public void addRange(int min, int max, int shift)
Overwrite this method, if you like to receive the raw int range bounds. You can use this for e.g. debugging purposes (print out range bounds).
-
-