Package org.apache.solr.legacy
Class LegacyNumericUtils.IntRangeBuilder
java.lang.Object
org.apache.solr.legacy.LegacyNumericUtils.IntRangeBuilder
- Enclosing class:
LegacyNumericUtils
Callback for
LegacyNumericUtils.splitIntRange(org.apache.solr.legacy.LegacyNumericUtils.IntRangeBuilder, int, int, int). You need to overwrite only one of the methods.- Since:
- 2.9, API changed non backwards-compliant in 4.0
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRange(int min, int max, int shift) Overwrite this method, if you like to receive the raw int range bounds.voidaddRange(org.apache.lucene.util.BytesRef minPrefixCoded, org.apache.lucene.util.BytesRef maxPrefixCoded) Overwrite this method, if you like to receive the already prefix encoded range bounds.
-
Constructor Details
-
IntRangeBuilder
public IntRangeBuilder()
-
-
Method Details
-
addRange
public void addRange(org.apache.lucene.util.BytesRef minPrefixCoded, org.apache.lucene.util.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).
-