Package com.illumon.iris.db.v2.utils
Interface IndexUtilities.Comparator
- Enclosing class:
- IndexUtilities
public static interface IndexUtilities.Comparator
-
Method Summary
Modifier and TypeMethodDescriptionint
directionToTargetFrom
(long value) Compare the underlying target to the provided value.
-
Method Details
-
directionToTargetFrom
int directionToTargetFrom(long value) Compare the underlying target to the provided value. Return -1, 0, or 1 if target is less than, equal, or greater than the provided value, respectively.- Parameters:
value
-- Returns:
- -1 if target < value; 0 if value == target; +1 if value < target.
-