Package org.wikidata.wdtk.dumpfiles
Class JsonDumpFileProcessor
java.lang.Object
org.wikidata.wdtk.dumpfiles.JsonDumpFileProcessor
- All Implemented Interfaces:
MwDumpFileProcessor
Processor for JSON dumpfiles.
- Author:
- Markus Kroetzsch
-
Constructor Summary
ConstructorsConstructorDescriptionJsonDumpFileProcessor(EntityDocumentProcessor entityDocumentProcessor, String siteIri) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDumpFileContents(InputStream inputStream, MwDumpFile dumpFile) Process dump file data from the given input stream.
-
Constructor Details
-
JsonDumpFileProcessor
-
-
Method Details
-
processDumpFileContents
Process dump file data from the given input stream. This method uses the efficient JacksonMappingIterator. However, this class cannot recover from processing errors. If an error occurs in one entity, the (presumably) less efficient processing methodprocessDumpFileContentsRecovery(InputStream)is used instead.- Specified by:
processDumpFileContentsin interfaceMwDumpFileProcessor- Parameters:
inputStream- to access the contents of the dumpdumpFile- to access further information about this dump- See Also:
-