Class JsonDumpFileProcessor

java.lang.Object
org.wikidata.wdtk.dumpfiles.JsonDumpFileProcessor
All Implemented Interfaces:
MwDumpFileProcessor

public class JsonDumpFileProcessor extends Object implements MwDumpFileProcessor
Processor for JSON dumpfiles.
Author:
Markus Kroetzsch
  • Constructor Details

  • Method Details

    • processDumpFileContents

      public void processDumpFileContents(InputStream inputStream, MwDumpFile dumpFile)
      Process dump file data from the given input stream. This method uses the efficient Jackson MappingIterator. However, this class cannot recover from processing errors. If an error occurs in one entity, the (presumably) less efficient processing method processDumpFileContentsRecovery(InputStream) is used instead.
      Specified by:
      processDumpFileContents in interface MwDumpFileProcessor
      Parameters:
      inputStream - to access the contents of the dump
      dumpFile - to access further information about this dump
      See Also: