Interface EntityDocumentDumpProcessor
- All Superinterfaces:
EntityDocumentProcessor
- All Known Implementing Classes:
EntityTimerProcessor
,JsonSerializer
,RdfSerializer
Interface for classes that process a list of
EntityDocument
objects.
The difference to EntityDocumentProcessor
is that there are
additional methods to start and end processing. They can be used to do
initial processing steps (open files, write headers etc.) and final
processing steps (closing files etc.), respectively.
Implementations expect callers to invoke the methods in a strict order: first
open()
, followed by any number of calls to
EntityDocumentProcessor.processItemDocument(ItemDocument)
and
EntityDocumentProcessor.processPropertyDocument(PropertyDocument)
, and finally
close()
. Any other order of invocation may lead to undefined
results. In particular, implementations are not expected to guard against
such wrong use.
- Author:
- Michael Günther
-
Method Summary
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessor
processEntityRedirectDocument, processItemDocument, processLexemeDocument, processMediaInfoDocument, processPropertyDocument
-
Method Details
-
open
void open()Starts the processing by performing any initial steps to prepare processing. -
close
void close()Finishes the processing by performing any final steps, such as closing resources.
-