Class GreatestNumberProcessor

java.lang.Object
org.wikidata.wdtk.examples.GreatestNumberProcessor
All Implemented Interfaces:
EntityDocumentProcessor

public class GreatestNumberProcessor extends Object implements EntityDocumentProcessor
This simple EntityDocumentProcessor finds the greatest number assigned to a certain property. The property can be modified by changing the value for numberPropertyId.
Author:
Markus Kroetzsch
  • Constructor Details

    • GreatestNumberProcessor

      public GreatestNumberProcessor()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Main method. Processes the whole dump using this processor. To change which dump file to use and whether to run in offline mode, modify the settings in ExampleHelpers.
      Parameters:
      args -
      Throws:
      IOException
    • processItemDocument

      public void processItemDocument(ItemDocument itemDocument)
      Description copied from interface: EntityDocumentProcessor
      Processes the given ItemDocument.
      Specified by:
      processItemDocument in interface EntityDocumentProcessor
      Parameters:
      itemDocument - the ItemDocument
    • printStatus

      public void printStatus()
      Prints the current status, time and entity count.
    • printDocumentation

      public static void printDocumentation()
      Prints some basic documentation about this program.