core/src/main/java/org/apache/carbondata/core/util/CarbonProperties.java
/**
   * This method is to validate only a specific key added to carbonProperties using addProperty
   *
   * @param key
   */
This method is to validate only a specific key added to carbonProperties using addProperty
@param key
This method is to validate only a specific key added to carbonProperties using addProperty @param key
private void validateAndLoadDefaultProperties(String key) {
    switch (key) {
      case BLOCKLET_SIZE:
        validateBlockletSize();
        break;
      case NUM_CORES:
        validateNumCores();
        break;
      case NUM_CORES_BLOCK_SORT:
        validateNumCoresBlockSort();
        break;
      case SORT_SIZE:
        validateSortSize();
        break;
      case CARBON_DATA_FILE_VERSION:
        validateCarbonDataFileVersion();
        break;
      case CARBON_DYNAMIC_ALLOCATION_SCHEDULER_TIMEOUT:
        validateDynamicSchedulerTimeOut();
        break;
      case CARBON_PREFETCH_BUFFERSIZE:
        validatePrefetchBufferSize();
        break;
      case BLOCKLET_SIZE_IN_MB:
        validateBlockletGroupSizeInMB();
        break;
      case NUMBER_OF_COLUMN_TO_READ_IN_IO:
        validateNumberOfColumnPerIORead();
        break;
      case ENABLE_UNSAFE_SORT:
        validateEnableUnsafeSort();
        break;
      case CARBON_CUSTOM_BLOCK_DISTRIBUTION:
        validateCustomBlockDistribution();
        break;
      case ENABLE_VECTOR_READER:
        validateEnableVectorReader();
        break;
      case CSV_READ_BUFFER_SIZE:
        validateCarbonCSVReadBufferSizeByte();
        break;
      case HANDOFF_SIZE:
        validateHandoffSize();
        break;
      case CARBON_TASK_DISTRIBUTION:
        validateCarbonTaskDistribution();
        break;
      case CARBON_TIMESTAMP_FORMAT:
        validateTimeFormatKey(CARBON_TIMESTAMP_FORMAT,
            CarbonCommonConstants.CARBON_TIMESTAMP_DEFAULT_FORMAT);
        break;
      case CARBON_DATE_FORMAT:
        validateTimeFormatKey(CARBON_DATE_FORMAT, CarbonCommonConstants.CARBON_DATE_DEFAULT_FORMAT);
        break;
      case CARBON_SORT_FILE_WRITE_BUFFER_SIZE:
        validateSortFileWriteBufferSize();
        break;
      case SORT_INTERMEDIATE_FILES_LIMIT:
        validateSortIntermediateFilesLimit();
        break;
      case ENABLE_AUTO_HANDOFF:
        validateHandoffSize();
        break;
      case CARBON_SCHEDULER_MIN_REGISTERED_RESOURCES_RATIO:
        validateSchedulerMinRegisteredRatio();
        break;
      default:
    }
  }
private void validateAndLoadDefaultProperties ( String key ) { switch ( key ) { case BLOCKLET_SIZE : validateBlockletSize ( ) ; break ; case NUM_CORES : validateNumCores ( ) ; break ; case NUM_CORES_BLOCK_SORT : validateNumCoresBlockSort ( ) ; break ; case SORT_SIZE : validateSortSize ( ) ; break ; case CARBON_DATA_FILE_VERSION : validateCarbonDataFileVersion ( ) ; break ; case CARBON_DYNAMIC_ALLOCATION_SCHEDULER_TIMEOUT : validateDynamicSchedulerTimeOut ( ) ; break ; case CARBON_PREFETCH_BUFFERSIZE : validatePrefetchBufferSize ( ) ; break ; case BLOCKLET_SIZE_IN_MB : validateBlockletGroupSizeInMB ( ) ; break ; case NUMBER_OF_COLUMN_TO_READ_IN_IO : validateNumberOfColumnPerIORead ( ) ; break ; case ENABLE_UNSAFE_SORT : validateEnableUnsafeSort ( ) ; break ; case CARBON_CUSTOM_BLOCK_DISTRIBUTION : validateCustomBlockDistribution ( ) ; break ; case ENABLE_VECTOR_READER : validateEnableVectorReader ( ) ; break ; case CSV_READ_BUFFER_SIZE : validateCarbonCSVReadBufferSizeByte ( ) ; break ; case HANDOFF_SIZE : validateHandoffSize ( ) ; break ; case CARBON_TASK_DISTRIBUTION : validateCarbonTaskDistribution ( ) ; break ; case CARBON_TIMESTAMP_FORMAT : validateTimeFormatKey ( CARBON_TIMESTAMP_FORMAT , CarbonCommonConstants . CARBON_TIMESTAMP_DEFAULT_FORMAT ) ; break ; case CARBON_DATE_FORMAT : validateTimeFormatKey ( CARBON_DATE_FORMAT , CarbonCommonConstants . CARBON_DATE_DEFAULT_FORMAT ) ; break ; case CARBON_SORT_FILE_WRITE_BUFFER_SIZE : validateSortFileWriteBufferSize ( ) ; break ; case SORT_INTERMEDIATE_FILES_LIMIT : validateSortIntermediateFilesLimit ( ) ; break ; case ENABLE_AUTO_HANDOFF : validateHandoffSize ( ) ; break ; case CARBON_SCHEDULER_MIN_REGISTERED_RESOURCES_RATIO : validateSchedulerMinRegisteredRatio ( ) ; break ; default : } }
This method is to validate only a specific key added to carbonProperties using addProperty
 @param key
This method is to validate only a specific key added to carbonProperties using addProperty @param key
// The method validate the validity of configured carbon.timestamp.format value // and reset to default value if validation fail // The method validate the validity of configured carbon.date.format value // and reset to default value if validation fail // TODO : Validation for carbon.lock.type should be handled for addProperty flow // none