private void validateSortSize(){
  String sortSizeStr=carbonProperties.getProperty(CarbonCommonConstants.SORT_SIZE,CarbonCommonConstants.SORT_SIZE_DEFAULT_VAL);
  try {
    int sortSize=Integer.parseInt(sortSizeStr);
    if (sortSize < CarbonCommonConstants.SORT_SIZE_MIN_VAL) {
      LOGGER.info("The batch size value \"" + sortSizeStr + "\" is invalid. Using the default value \""+ CarbonCommonConstants.SORT_SIZE_DEFAULT_VAL);
      carbonProperties.setProperty(CarbonCommonConstants.SORT_SIZE,CarbonCommonConstants.SORT_SIZE_DEFAULT_VAL);
    }
  }
 catch (  NumberFormatException e) {
    LOGGER.info("The batch size value \"" + sortSizeStr + "\" is invalid. Using the default value \""+ CarbonCommonConstants.SORT_SIZE_DEFAULT_VAL);
    carbonProperties.setProperty(CarbonCommonConstants.SORT_SIZE,CarbonCommonConstants.SORT_SIZE_DEFAULT_VAL);
  }
}

private void validateSortSize ( ) { String sortSizeStr = carbonProperties . getProperty ( CarbonCommonConstants . SORT_SIZE , CarbonCommonConstants . SORT_SIZE_DEFAULT_VAL ) ; try { int sortSize = Integer . parseInt ( sortSizeStr ) ; if ( sortSize < CarbonCommonConstants . SORT_SIZE_MIN_VAL ) { LOGGER . info ( "The batch size value \"" + sortSizeStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . SORT_SIZE_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . SORT_SIZE , CarbonCommonConstants . SORT_SIZE_DEFAULT_VAL ) ; } } catch ( NumberFormatException e ) { LOGGER . info ( "The batch size value \"" + sortSizeStr + "\" is invalid. Using the default value \"" + CarbonCommonConstants . SORT_SIZE_DEFAULT_VAL ) ; carbonProperties . setProperty ( CarbonCommonConstants . SORT_SIZE , CarbonCommonConstants . SORT_SIZE_DEFAULT_VAL ) ; } }
this method validates the sort size
