private void validateAndLoadDefaultProperties(){
  if (null == carbonProperties.getProperty(CarbonCommonConstants.STORE_LOCATION)) {
    carbonProperties.setProperty(CarbonCommonConstants.STORE_LOCATION,CarbonCommonConstants.STORE_LOCATION_DEFAULT_VAL);
  }
  validateBlockletSize();
  validateMaxFileSize();
  validateNumCores();
  validateNumCoresBlockSort();
  validateSortSize();
  validateBadRecordsLocation();
  validateHighCardinalityIdentify();
  validateHighCardinalityThreshold();
  validateHighCardinalityInRowCountPercentage();
}

private void validateAndLoadDefaultProperties ( ) { if ( null == carbonProperties . getProperty ( CarbonCommonConstants . STORE_LOCATION ) ) { carbonProperties . setProperty ( CarbonCommonConstants . STORE_LOCATION , CarbonCommonConstants . STORE_LOCATION_DEFAULT_VAL ) ; } validateBlockletSize ( ) ; validateMaxFileSize ( ) ; validateNumCores ( ) ; validateNumCoresBlockSort ( ) ; validateSortSize ( ) ; validateBadRecordsLocation ( ) ; validateHighCardinalityIdentify ( ) ; validateHighCardinalityThreshold ( ) ; validateHighCardinalityInRowCountPercentage ( ) ; }
this method validates the loaded properties and loads default values in case of wrong values .
