package main.java.org.wikidata.analyzer.Processor;

import org.wikidata.wdtk.datamodel.interfaces.*;

/**
 * This processor simply outputs status lines to the console.
 *
 * @author Addshore
 */
public class NoisyProcessor implements EntityDocumentProcessor {

    private int itemCount = 0;
    private int propertyCount = 0;

    @Override
    public void processItemDocument(ItemDocument item) {
        this.itemCount++;
        //Output a line ever 250,000 items
        if (this.itemCount % 250000 == 0) {
            System.out.println("Processed " + this.itemCount + " items " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

    @Override
    public void processPropertyDocument(PropertyDocument property) {
        this.propertyCount++;
        //Output a line ever 100 properties
        if (this.propertyCount % 100 == 0) {
            System.out.println("Processed " + this.itemCount + " properties " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

}
package main.java.org.wikidata.analyzer.Processor;

import org.wikidata.wdtk.datamodel.interfaces.*;

/**
 * This processor simply outputs status lines to the console.
 *
 * @author Addshore
 */
public class NoisyProcessor implements EntityDocumentProcessor {

    private int itemCount = 0;
    private int propertyCount = 0;

    @Override
    public void processItemDocument(ItemDocument item) {
        this.itemCount++;
        //Output a line ever 250,000 items
        if (this.itemCount % 250000 == 0) {
            System.out.println("Processed " + this.itemCount + " items " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

    @Override
    public void processPropertyDocument(PropertyDocument property) {
        this.propertyCount++;
        //Output a line ever 100 properties
        if (this.propertyCount % 100 == 0) {
            System.out.println("Processed " + this.propertyCount + " properties " + Runtime.getRuntime().totalMemory() / 1024 / 1024 + "MB mem used");
        }
    }

}
Fix noisy processor propertycount output