helper method to calculate the span of the sub-interval . simply returns the cieling of limit - start / segments and accounts for invalid start and limit combinations . concode_field_sep PlaceHolder placeHolder concode_field_sep int rank concode_elem_sep int[] countSegments
long function ( int arg0 , int arg1 , int arg2 ) { long loc0 = arg2 - arg1 ; if ( loc0 < 0 ) { return 0 ; } int loc1 = ( loc0 % arg0 ) == 0 ? 0 : 1 ; return ( loc0 / arg0 ) + loc1 ; }