Package org.apache.lucene.util
Class NumericUtils.IntRangeBuilder
java.lang.Object
org.apache.lucene.util.NumericUtils.IntRangeBuilder
- Enclosing class:
- NumericUtils
Callback for
NumericUtils.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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRange
(int min, int max, int shift) Overwrite this method, if you like to receive the raw int range bounds.void
Overwrite this method, if you like to receive the already prefix encoded range bounds.
-
Constructor Details
-
IntRangeBuilder
public IntRangeBuilder()
-
-
Method Details
-
addRange
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).
-