public interface EntityDocumentDumpProcessor extends EntityDocumentProcessor
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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Finishes the processing by performing any final steps, such as closing
resources.
|
void |
open()
Starts the processing by performing any initial steps to prepare
processing.
|
processEntityRedirectDocument, processItemDocument, processLexemeDocument, processMediaInfoDocument, processPropertyDocument
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage