public HollowObjectSchema filterSchema(HollowFilterConfig config) {
        /*
         * This method is preserved for binary compat from before TypeFilter was introduced.
         */

        return filterSchema((TypeFilter)config);
    }
@Test
    public void filterSchema() {
        HollowObjectSchema s1 = new HollowObjectSchema("Test", 2, "F2");
        s1.addField("F1", FieldType.INT);
        s1.addField("F2", FieldType.LONG);
        Assert.assertEquals(2, s1.numFields());

        HollowFilterConfig filter = new HollowFilterConfig();
        filter.addField("Test", "F2");
        HollowObjectSchema s2 = s1.filterSchema(filter);
        Assert.assertEquals(1, s2.numFields());
        Assert.assertEquals("F2", s2.getFieldName(0));

        Assert.assertEquals(s1.getPrimaryKey(), s2.getPrimaryKey());
    }