core/src/main/java/com/digitalpebble/stormcrawler/parse/ParseFilters.java
@SuppressWarnings("rawtypes")
    public static ParseFilters fromConf(Map stormConf) {
        String parseconfigfile = ConfUtils.getString(stormConf,
                "parsefilters.config.file");
        if (StringUtils.isNotBlank(parseconfigfile)) {
            try {
                return new ParseFilters(stormConf, parseconfigfile);
            } catch (IOException e) {
                String message = "Exception caught while loading the ParseFilters from "
                        + parseconfigfile;
                LOG.error(message);
                throw new RuntimeException(message, e);
            }
        }

        return ParseFilters.emptyParseFilter;
    }
@SuppressWarnings("rawtypes")
    public static ParseFilters fromConf(Map stormConf) {
        String parseconfigfile = ConfUtils.getString(stormConf,
                "parsefilters.config.file");
        if (StringUtils.isNotBlank(parseconfigfile)) {
            try {
                return new ParseFilters(stormConf, parseconfigfile);
            } catch (IOException e) {
                String message = "Exception caught while loading the ParseFilters from "
                        + parseconfigfile;
                LOG.error(message);
                throw new RuntimeException(message, e);
            }
        }

        return ParseFilters.emptyParseFilter;
    }
@ SuppressWarnings ( "rawtypes" ) public static ParseFilters fromConf ( Map stormConf ) { String parseconfigfile = ConfUtils . getString ( stormConf , "parsefilters.config.file" ) ; if ( StringUtils . isNotBlank ( parseconfigfile ) ) { try { return new ParseFilters ( stormConf , parseconfigfile ) ; } catch ( IOException e ) { String message = "Exception caught while loading the ParseFilters from " + parseconfigfile ; LOG . error ( message ) ; throw new RuntimeException ( message , e ) ; } } return ParseFilters . emptyParseFilter ; }
Loads and configure the ParseFilters based on the storm config if there
is one otherwise returns an emptyParseFilter.
Loads and configure the ParseFilters based on the storm config if there is one otherwise returns an emptyParseFilter .