Class BigIntegerQuantizer
- java.lang.Object
-
- com.googlecode.cqengine.quantizer.BigIntegerQuantizer
-
public class BigIntegerQuantizer extends Object
A static factory for creatingQuantizer
s forBigInteger
attributes. SeewithCompressionFactor(int)
for details.- Author:
- Niall Gallagher
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Quantizer<BigInteger>
withCompressionFactor(int compressionFactor)
Returns aQuantizer
which converts the input value to the nearest multiple of the compression factor, in the direction towards zero.
-
-
-
Method Detail
-
withCompressionFactor
public static Quantizer<BigInteger> withCompressionFactor(int compressionFactor)
Returns aQuantizer
which converts the input value to the nearest multiple of the compression factor, in the direction towards zero. Examples (compression factor 5):
- Input value 0 -> 0
- Input value 4 -> 0
- Input value 5 -> 5
- Input value 9 -> 5
- Input value -4 -> 0
- Input value -5 -> -5
- Input value -9 -> -5
- Parameters:
compressionFactor
- The number of adjacent mathematical integers (>= 2) to coalesce to a single key- Returns:
- A
Quantizer
which converts the input value to the nearest multiple of the compression factor, in the direction towards zero
-
-