public static abstract class

NumericUtils.LongRangeBuilder

extends Object
java.lang.Object
   ↳ org.apache.lucene.util.NumericUtils.LongRangeBuilder

Class Overview

Expert: Callback for splitLongRange(NumericUtils.LongRangeBuilder, int, long, long). You need to overwrite only one of the methods.

NOTE: This is a very low-level interface, the method signatures may change in later versions.

Summary

Public Constructors
NumericUtils.LongRangeBuilder()
Public Methods
void addRange(String minPrefixCoded, String maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
void addRange(long min, long max, int shift)
Overwrite this method, if you like to receive the raw long range bounds.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NumericUtils.LongRangeBuilder ()

Public Methods

public void addRange (String minPrefixCoded, String maxPrefixCoded)

Overwrite this method, if you like to receive the already prefix encoded range bounds. You can directly build classical (inclusive) range queries from them.

public void addRange (long min, long max, int shift)

Overwrite this method, if you like to receive the raw long range bounds. You can use this for e.g. debugging purposes (print out range bounds).