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


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