public class UmlsBatchLoaderImpl extends AbstractSpringBatchLoader implements UmlsBatchLoader
BaseLoader.DoConversion
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SAB_OPTION |
ASYNC_OPTION, FAIL_ON_ERROR_OPTION, inUse, LOADER_POST_PROCESSOR_OPTION, LOADER_PREFERENCE_FILE_OPTION, MANIFEST_FILE_OPTION, SUPPLEMENT_OPTION
DESCRIPTION, NAME, VERSION
Constructor and Description |
---|
UmlsBatchLoaderImpl() |
Modifier and Type | Method and Description |
---|---|
protected ExtensionDescription |
buildExtensionDescription()
Builds the extension description.
|
protected OptionHolder |
declareAllowedOptions(OptionHolder holder) |
protected URNVersionPair[] |
doLoad() |
protected URNVersionPair[] |
getLoadedCodingSchemes(org.springframework.context.ApplicationContext context) |
java.lang.String |
getName()
Return the name assigned to this service extension.
|
OntologyFormat |
getOntologyFormat()
Return the ontology format the loader can handle
|
void |
loadUmls(java.net.URI rrfDir,
java.lang.String sab)
Load umls.
|
static void |
main(java.lang.String[] args) |
void |
removeLoad(java.lang.String uri,
java.lang.String version)
Removes the load.
|
void |
resumeUmls(java.net.URI rrfDir,
java.lang.String sab,
java.lang.String uri,
java.lang.String version)
Resume umls.
|
buildJobParameters, getJobExecution, getLoadedCodingSchemes, getURIFromPath, launchJob, printJobProperties, printStartLogInfo, processStateConverter, setLoadedCodingSchemes
addBooleanOptionValue, baseLoad, buildRootNode, clearLog, constructVersionPairsFromCodingSchemes, createCachingMessageDirectorIF, createDefaultInserter, createDefaultInserter, doesOptionExist, doIndex, doPostProcessing, doRegister, doTransitiveAndIndex, doTransitiveTable, getAbsoluteCodingSchemeVersionReferenceFromOptionString, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getDescription, getLoaderPreferences, getLog, getLogger, getManifestUtil, getMessageDirector, getOptions, getPostProcessor, getProvider, getResourceUri, getStatus, getStringFromURI, getVersion, isDoApplyPostLoadManifest, isDoComputeTransitiveClosure, isDoIndexing, isDoRegister, isDoRemoveOnFailure, isInUse, load, lock, persistCodingSchemeToDatabase, persistCodingSchemeToDatabase, register, register, setCachingMessageDirectorIF, setCodingSchemeManifest, setCodingSchemeManifestURI, setCodingSchemeReferences, setDoApplyPostLoadManifest, setDoComputeTransitiveClosure, setDoIndexing, setDoRegister, setDoRemoveOnFailure, setInUse, setLoaderPreferences, setLoaderPreferences, setManifestUtil, setOptions, setResourceUri, setStatus, unlock, urnVersionPairToAbsoluteCodingSchemeVersionReference
getExtensionDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJobExecution
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
getDescription, getProvider, getVersion
public void loadUmls(java.net.URI rrfDir, java.lang.String sab) throws java.lang.Exception
UmlsBatchLoader
loadUmls
in interface UmlsBatchLoader
rrfDir
- the rrf dirsab
- the sabjava.lang.Exception
- the exceptionpublic void resumeUmls(java.net.URI rrfDir, java.lang.String sab, java.lang.String uri, java.lang.String version) throws java.lang.Exception
UmlsBatchLoader
resumeUmls
in interface UmlsBatchLoader
rrfDir
- the rrf dirsab
- the saburi
- the uriversion
- the versionjava.lang.Exception
- the exceptionpublic void removeLoad(java.lang.String uri, java.lang.String version) throws LBParameterException
UmlsBatchLoader
removeLoad
in interface UmlsBatchLoader
uri
- the uriversion
- the versionLBParameterException
public java.lang.String getName()
Extendable
getName
in interface Extendable
getName
in class BaseLoader
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected OptionHolder declareAllowedOptions(OptionHolder holder)
declareAllowedOptions
in class BaseLoader
protected URNVersionPair[] doLoad()
doLoad
in class BaseLoader
protected URNVersionPair[] getLoadedCodingSchemes(org.springframework.context.ApplicationContext context)
getLoadedCodingSchemes
in class AbstractSpringBatchLoader
protected ExtensionDescription buildExtensionDescription()
AbstractExtendable
buildExtensionDescription
in class AbstractExtendable
public OntologyFormat getOntologyFormat()
Loader
getOntologyFormat
in interface Loader
getOntologyFormat
in class BaseLoader