| Package | Description |
|---|---|
| org.wikidata.wdtk.dumpfiles |
Components for downloading and processing Wikibase dump files.
|
| org.wikidata.wdtk.dumpfiles.wmf |
Code that is specific to the dump file exports of the Wikimedia Foundation (WMF).
|
| Modifier and Type | Method | Description |
|---|---|---|
DumpContentType |
MwDumpFile.getDumpContentType() |
Returns information about the content of the dump.
|
DumpContentType |
MwLocalDumpFile.getDumpContentType() |
|
static DumpContentType |
DumpContentType.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static DumpContentType[] |
DumpContentType.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
MwDumpFile |
DumpProcessingController.getMostRecentDump(DumpContentType dumpContentType) |
Returns a handler for the most recent dump file of the given type that is
available (under the current settings), or null if no dump file of this
type could be retrieved.
|
void |
DumpProcessingController.processMostRecentDump(DumpContentType dumpContentType,
MwDumpFileProcessor dumpFileProcessor) |
Deprecated.
Use
DumpProcessingController.getMostRecentDump(DumpContentType) and
DumpProcessingController.processDump(MwDumpFile) instead; method will vanish
in WDTK 0.5 |
| Constructor | Description |
|---|---|
MwLocalDumpFile(java.lang.String filePath,
DumpContentType dumpContentType,
java.lang.String dateStamp,
java.lang.String projectName) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
DumpContentType |
JsonOnlineDumpFile.getDumpContentType() |
|
DumpContentType |
WmfLocalDumpFile.getDumpContentType() |
|
DumpContentType |
WmfOnlineStandardDumpFile.getDumpContentType() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<MwDumpFile> |
WmfDumpFileManager.findAllDumps(DumpContentType dumpContentType) |
Returns a list of all dump files of the given type available either
online or locally.
|
MwDumpFile |
WmfDumpFileManager.findMostRecentDump(DumpContentType dumpContentType) |
Finds the most recent dump of the given type that is actually available.
|
static java.lang.String |
WmfDumpFile.getDateStampFromDumpFileDirectoryName(DumpContentType dumpContentType,
java.lang.String directoryName) |
Extracts the date stamp from a dumpfile directory name in the form that
is created by
WmfDumpFile.getDumpFileDirectoryName(DumpContentType, String). |
static java.lang.String |
WmfDumpFile.getDumpFileDirectoryName(DumpContentType dumpContentType,
java.lang.String dateStamp) |
Returns the name of the directory where the dumpfile of the given type
and date should be stored.
|
static java.lang.String |
WmfDumpFile.getDumpFileName(DumpContentType dumpContentType,
java.lang.String projectName,
java.lang.String dateStamp) |
Returns the name under which this dump file.
|
static java.lang.String |
WmfDumpFile.getDumpFilePostfix(DumpContentType dumpContentType) |
Returns the ending used by the Wikimedia-provided dumpfile names of the
given type.
|
static java.lang.String |
WmfDumpFile.getDumpFileWebDirectory(DumpContentType dumpContentType,
java.lang.String projectName) |
Returns the absolute directory on the Web site where dumpfiles of the
given type can be found.
|
static boolean |
WmfDumpFile.isRevisionDumpFile(DumpContentType dumpContentType) |
Returns true if the given dump file type contains page revisions and
false if it does not.
|
| Constructor | Description |
|---|---|
WmfLocalDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.DirectoryManager dumpfileDirectoryManager,
DumpContentType dumpContentType) |
Constructor.
|
WmfOnlineStandardDumpFile(java.lang.String dateStamp,
java.lang.String projectName,
org.wikidata.wdtk.util.WebResourceFetcher webResourceFetcher,
org.wikidata.wdtk.util.DirectoryManager dumpfileDirectoryManager,
DumpContentType dumpContentType) |
Constructor.
|
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage