public class Merger
extends org.corpus_tools.pepper.impl.PepperManipulatorImpl
implements org.corpus_tools.pepper.modules.PepperManipulator
| Modifier and Type | Field and Description |
|---|---|
protected org.corpus_tools.peppermodules.mergingModules.Merger.Multimap |
mappingTable
a map containing all mapping partners (
SCorpus and
SDocument nodes) corresponding to their sId. |
static String |
MODULE_NAME |
| Constructor and Description |
|---|
Merger() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createMapping()
Creates a table of type
Multimap, which contains a slot of
matching elements as value. |
org.corpus_tools.pepper.modules.PepperMapper |
createPepperMapper(org.corpus_tools.salt.graph.Identifier sElementId)
Creates a
PepperMapper of type MergerMapper. |
void |
end()
Removes all corpus-structures except the base corpus-structure
|
org.corpus_tools.salt.common.SCorpusGraph |
getBaseCorpusStructure()
Returns the
SCorpusGraph is the base corpus graph, in which
everything has to be merged in. |
boolean |
isReadyToStart() |
List<org.corpus_tools.salt.graph.Identifier> |
proposeImportOrder(org.corpus_tools.salt.common.SCorpusGraph sCorpusGraph)
Creates an import order for each
SCorpusGraph object. |
void |
releaseMergerMapper()
Reduces the internal count of active mappers by one.
|
void |
setBaseCorpusStructure(org.corpus_tools.salt.common.SCorpusGraph baseCorpusStructure)
Sets the
SCorpusGraph is the base corpus graph, in which
everything has to be merged in. |
void |
start()
Overrides parent method, to enable the
parallel working in more than one
DocumentController objects at a
time. |
activate, done, done, getComponentContext, getCorpusGraph, getDesc, getDocumentId2DC, getFingerprint, getMapperControllers, getMapperThreadGroup, getModuleController, getModuleType, getName, getProgress, getProgress, getProperties, getResources, getSaltProject, getSelfTestDesc, getStartProblems, getSupplierContact, getSupplierHomepage, getSymbolicName, getTemproraries, getVersion, isMultithreaded, setCorpusGraph, setDesc, setIsMultithreaded, setMapperThreadGroup, setName, setPepperModuleController_basic, setPepperModuleController, setProperties, setResources, setSaltProject, setSupplierContact, setSupplierHomepage, setSymbolicName, setTemproraries, setVersion, start, toString, uncaughtExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdone, done, getComponentContext, getCorpusGraph, getDesc, getFingerprint, getModuleController, getModuleType, getName, getProgress, getProgress, getProperties, getResources, getSaltProject, getSelfTestDesc, getStartProblems, getSupplierContact, getSupplierHomepage, getSymbolicName, getTemproraries, getVersion, isMultithreaded, setCorpusGraph, setDesc, setIsMultithreaded, setPepperModuleController_basic, setPepperModuleController, setProperties, setResources, setSaltProject, setSupplierContact, setSupplierHomepage, setSymbolicName, setTemproraries, setVersion, startpublic static final String MODULE_NAME
protected org.corpus_tools.peppermodules.mergingModules.Merger.Multimap mappingTable
SCorpus and
SDocument nodes) corresponding to their sId.public boolean isReadyToStart()
isReadyToStart in interface org.corpus_tools.pepper.modules.PepperModuleisReadyToStart in class org.corpus_tools.pepper.impl.PepperModuleImplpublic org.corpus_tools.salt.common.SCorpusGraph getBaseCorpusStructure()
SCorpusGraph is the base corpus graph, in which
everything has to be merged in.public void setBaseCorpusStructure(org.corpus_tools.salt.common.SCorpusGraph baseCorpusStructure)
SCorpusGraph is the base corpus graph, in which
everything has to be merged in.baseCorpusStructure - protected void createMapping()
Multimap, which contains a slot of
matching elements as value. The key is the Identifier. Only real
existing elements are contained in table.public List<org.corpus_tools.salt.graph.Identifier> proposeImportOrder(org.corpus_tools.salt.common.SCorpusGraph sCorpusGraph)
SCorpusGraph object. The order
for given SCorpusGraph objects is very similar or equal, in case
they contain the same SDocuments (the ones to be merged).proposeImportOrder in interface org.corpus_tools.pepper.modules.PepperModuleproposeImportOrder in class org.corpus_tools.pepper.impl.PepperModuleImplpublic void releaseMergerMapper()
waitForMergerMapper()public void start()
throws org.corpus_tools.pepper.modules.exceptions.PepperModuleException
DocumentController objects at a
time.start in interface org.corpus_tools.pepper.modules.PepperModulestart in class org.corpus_tools.pepper.impl.PepperModuleImplorg.corpus_tools.pepper.modules.exceptions.PepperModuleExceptionpublic void end()
throws org.corpus_tools.pepper.modules.exceptions.PepperModuleException
end in interface org.corpus_tools.pepper.modules.PepperModuleend in class org.corpus_tools.pepper.impl.PepperModuleImplorg.corpus_tools.pepper.modules.exceptions.PepperModuleExceptionpublic org.corpus_tools.pepper.modules.PepperMapper createPepperMapper(org.corpus_tools.salt.graph.Identifier sElementId)
PepperMapper of type MergerMapper. Therefore
the table givenSlots must contain an entry for the given
Identifier. The create methods passes all documents and corpora
given in the entire slot to the MergerMapper.createPepperMapper in interface org.corpus_tools.pepper.modules.PepperModulecreatePepperMapper in class org.corpus_tools.pepper.impl.PepperModuleImplCopyright © 2014–2019 Humboldt-Universität zu Berlin. All rights reserved.