MacroBaseConf extends Configuration { public Integer getInt(String key) throws ConfigurationException { if (!_conf.containsKey(key)) { throw new MissingParameterException(key); } return getInt(key, null); } MacroBaseConf(); DataIngester constructIngester(); DatumEncoder getEncoder(); Random getRandom(); BatchTrainScore constructTransform(); @JsonAnySetter MacroBaseConf set(String key, Object value); Boolean isSet(String key); String getString(String key); String getString(String key, String defaultValue); List<String> getStringList(String key); List<String> getStringList(String key, List<String> defaultValue); Double getDouble(String key); Double getDouble(String key, Double defaultValue); Map<String, String> getMap(String key); List<Double> getDoubleList(String key); List<Double> getDoubleList(String key, List<Double> defaultValue); Integer getInt(String key); Integer getInt(String key, Integer defaultValue); Long getLong(String key); Long getLong(String key, Long defaultValue); Boolean getBoolean(String key); Boolean getBoolean(String key, Boolean defaultValue); CSVIngester.Compression getCsvCompression(); PeriodType getDecayType(); @Override String toString(); void loadSystemProperties(); static final String QUERY_NAME; static final String PIPELINE_NAME; static final String TARGET_PERCENTILE; static final String MIN_SUPPORT; static final String MIN_OI_RATIO; static final String ATTRIBUTE_COMBINATIONS; static final String RANDOM_SEED; static final String USE_PERCENTILE; static final String TRANSFORM_TYPE; static final String WARMUP_COUNT; static final String TUPLE_BATCH_SIZE; static final String INPUT_RESERVOIR_SIZE; static final String SCORE_RESERVOIR_SIZE; static final String SUMMARY_UPDATE_PERIOD; static final String DECAY_TYPE; static final String DECAY_RATE; static final String MODEL_UPDATE_PERIOD; static final String OUTLIER_ITEM_SUMMARY_SIZE; static final String INLIER_ITEM_SUMMARY_SIZE; static final String TUPLE_WINDOW; static final String TIME_WINDOW; static final String MCD_ALPHA; static final String MCD_STOPPING_DELTA; static final String RANDOM_PROJECTION_K; static final String TRUNCATE_K; static final String DATA_LOADER_TYPE; static final String TIME_COLUMN; static final String ATTRIBUTES; static final String METRICS; static final String LOW_METRIC_TRANSFORM; static final String JDBC_PROPERTIES; static final String BASE_QUERY; static final String DB_USER; static final String DB_PASSWORD; static final String DB_NAME; static final String DB_URL; static final String DB_CACHE_DIR; static final String DB_CACHE_CHUNK_SIZE; static final String CSV_INPUT_FILE; static final String CSV_COMPRESSION; static final String OUTLIER_STATIC_THRESHOLD; }
@Test(expected = MissingParameterException.class) public void missingIntegerTest() throws ConfigurationException { (new MacroBaseConf()).getInt("dud"); }