private void validateTableOptionRetentionAge(TableDefinition tableDef, String optValue) {
        RetentionAge retAge = new RetentionAge(optValue); // throws if invalid format
        optValue = retAge.toString();
        tableDef.setOption(CommonDefs.OPT_RETENTION_AGE, optValue); // rewrite value
        Utils.require(tableDef.getOption(CommonDefs.OPT_AGING_FIELD) != null,
                      "Option 'retention-age' requires option 'aging-field'");
    }
private void validateTableOptionRetentionAge ( TableDefinition tableDef , String optValue ) { RetentionAge retAge = new RetentionAge ( optValue ) ; optValue = retAge . toString ( ) ; tableDef . setOption ( CommonDefs . OPT_RETENTION_AGE , optValue ) ; Utils . require ( tableDef . getOption ( CommonDefs . OPT_AGING_FIELD ) != null , "Option 'retention-age' requires option 'aging-field'" ) ; }
Validate the table option "retention-age".