hollow/src/main/java/com/netflix/hollow/core/read/filter/HollowFilterConfig.java
public static HollowFilterConfig fromString(String conf) {
        String lines[] = conf.split("\n");

        HollowFilterConfig config = new HollowFilterConfig("EXCLUDE".equals(lines[0]));

        for(int i=1;i<lines.length;i++) {
            int delimiterIdx = lines[i].indexOf('.');
            if(delimiterIdx == -1) {
                config.addType(lines[i]);
            } else {
                String type = lines[i].substring(0, delimiterIdx);
                String field = lines[i].substring(delimiterIdx+1);
                config.addField(type, field);
            }
        }

        return config;
    }
public static HollowFilterConfig fromString(String conf) {
        String lines[] = conf.split("\n");

        HollowFilterConfig config = new HollowFilterConfig("EXCLUDE".equals(lines[0]));

        for(int i=1;i<lines.length;i++) {
            int delimiterIdx = lines[i].indexOf('.');
            if(delimiterIdx == -1) {
                config.addType(lines[i]);
            } else {
                String type = lines[i].substring(0, delimiterIdx);
                String field = lines[i].substring(delimiterIdx+1);
                config.addField(type, field);
            }
        }

        return config;
    }
public static HollowFilterConfig fromString ( String conf ) { String lines [ ] = conf . split ( "\n" ) ; HollowFilterConfig config = new HollowFilterConfig ( "EXCLUDE" . equals ( lines [ 0 ] ) ) ; for ( int i = 1 ; i < lines . length ; i ++ ) { int delimiterIdx = lines [ i ] . indexOf ( ' ' ) ; if ( delimiterIdx == - 1 ) { config . addType ( lines [ i ] ) ; } else { String type = lines [ i ] . substring ( 0 , delimiterIdx ) ; String field = lines [ i ] . substring ( delimiterIdx + 1 ) ; config . addField ( type , field ) ; } } return config ; }
Parse a HollowFilterConfig from the specified String.  The String should contain multiple lines.
The first line should be either "EXCLUDE" or "INCLUDE".  Subsequent lines should be one of the following:
<ul>
<li>&lt;typeName&gt;</li>
<li>&lt;typeName&gt;.&lt;fieldName&gt;</li>
</ul>

@param conf the configuration as a string
@return the filter configuration
Parse a HollowFilterConfig from the specified String . The String should contain multiple lines . The first line should be either EXCLUDE or INCLUDE . Subsequent lines should be one of the following : <ul > <li > &lt ; typeName&gt ; < / li > <li > &lt ; typeName&gt ; . &lt ; fieldName&gt ; < / li > < / ul >