DumpProcessingAction, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessor, org.wikidata.wdtk.datamodel.interfaces.EntityDocumentProcessorpublic class JsonSerializationAction extends DumpProcessingOutputAction
DumpProcessingOutputAction.FinishableRunnable| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DEFAULT_ACTION_NAME |
default action name is used to separate different
DumpProcessingOutputActions from each other.
|
static java.lang.String |
DEFAULT_FILE_NAME |
The base file name that will be used by default.
|
COMPRESS_BZ2, COMPRESS_GZIP, COMPRESS_NONE, compressionType, dateStamp, name, OPTION_COMPRESSION, OPTION_DESTINATION, OPTION_USE_STDOUT, outputDestination, outputStreams, project, sites, useStdOut| Constructor | Description |
|---|---|
JsonSerializationAction() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
java.lang.String |
getDefaultActionName() |
Returns the default name for an action.
|
java.lang.String |
getReport() |
Returns a report message containing information about the files which
were generated.
|
boolean |
isReady() |
Returns true if the action is ready to process a dump.
|
boolean |
needsSites() |
Returns true if processing requires a
Sites object to be set. |
void |
open() |
|
void |
processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument) |
|
void |
processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument) |
getActionName, getAsynchronousOutputStream, getOutputFilename, getOutputStream, insertDumpInformation, setActionName, setDumpInformation, setOption, setSites, useStdOutpublic static final java.lang.String DEFAULT_FILE_NAME
public static final java.lang.String DEFAULT_ACTION_NAME
public JsonSerializationAction()
DumpProcessingOutputAction for more details.public boolean needsSites()
DumpProcessingActionSites object to be set.
This is the case for some operations that process site links.public boolean isReady()
DumpProcessingActionIf this method is called on an action that is not ready, the action should print helpful information on the missing configuration to stdout as a side effect.
public void open()
public void processItemDocument(org.wikidata.wdtk.datamodel.interfaces.ItemDocument itemDocument)
public void processPropertyDocument(org.wikidata.wdtk.datamodel.interfaces.PropertyDocument propertyDocument)
public void close()
close in interface org.wikidata.wdtk.datamodel.interfaces.EntityDocumentDumpProcessorclose in class DumpProcessingOutputActionpublic java.lang.String getReport()
DumpProcessingActionpublic java.lang.String getDefaultActionName()
DumpProcessingActionCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage