lib/src/kbasesearchengine/main/TemporaryNarrativePruner.java
private List<ObjectData> clean(final List<ObjectData> objectData) {
        for (final ObjectData od: objectData) {
            if (od.getType().equals("Narrative")) {
                od.setData(null); // nuke the raw data
                final Map<String, String> keyprops = new HashMap<>(od.getKeyProps());
                for (final String field: FIELDS_TO_NUKE) {
                    keyprops.remove(field);
                }
                od.setKeyProps(keyprops);
            }
        }
        return objectData;
    }
// this method modifies the input in place
this method modifies the input in place
this method modifies the input in place
private List<ObjectData> clean(final List<ObjectData> objectData) {
        for (final ObjectData od: objectData) {
            if (od.getType().equals("Narrative")) {
                od.setData(null); 
                final Map<String, String> keyprops = new HashMap<>(od.getKeyProps());
                for (final String field: FIELDS_TO_NUKE) {
                    keyprops.remove(field);
                }
                od.setKeyProps(keyprops);
            }
        }
        return objectData;
    }
private List < ObjectData > clean ( final List < ObjectData > objectData ) { for ( final ObjectData od : objectData ) { if ( od . getType ( ) . equals ( "Narrative" ) ) { od . setData ( null ) ; final Map < String , String > keyprops = new HashMap < > ( od . getKeyProps ( ) ) ; for ( final String field : FIELDS_TO_NUKE ) { keyprops . remove ( field ) ; } od . setKeyProps ( keyprops ) ; } } return objectData ; }
this method modifies the input in place
this method modifies the input in place
// nuke the raw data