core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java
/**
   * Method will identify the value which is lesser than the pivot element
   * on which range filter is been applied.
   *
   * @param currentIndex
   * @param dimColumnDataChunk
   * @param compareValue
   * @return index value
   */
Method will identify the value which is lesser than the pivot element
on which range filter is been applied.


Method will identify the value which is lesser than the pivot element on which range filter is been applied .
public static int nextLesserValueToTarget(int currentIndex,
      DimensionColumnDataChunk dimColumnDataChunk, byte[] compareValue) {
    while (currentIndex - 1 >= 0
        && dimColumnDataChunk.compareTo(currentIndex - 1, compareValue) >= 0) {
      --currentIndex;
    }
    return --currentIndex;
  }
public static int nextLesserValueToTarget ( int currentIndex , DimensionColumnDataChunk dimColumnDataChunk , byte [ ] compareValue ) { while ( currentIndex - 1 >= 0 && dimColumnDataChunk . compareTo ( currentIndex - 1 , compareValue ) >= 0 ) { -- currentIndex ; } return -- currentIndex ; }
Method will identify the value which is lesser than the pivot element
 on which range filter is been applied.
Method will identify the value which is lesser than the pivot element on which range filter is been applied .