Class AbstractTermGraphLoader
- java.lang.Object
-
- com.ibm.fhir.term.graph.loader.impl.AbstractTermGraphLoader
-
- All Implemented Interfaces:
FHIRTermGraphLoader
- Direct Known Subclasses:
CodeSystemTermGraphLoader
,SnomedTermGraphLoader
,UMLSTermGraphLoader
public abstract class AbstractTermGraphLoader extends Object implements FHIRTermGraphLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.fhir.term.graph.loader.FHIRTermGraphLoader
FHIRTermGraphLoader.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
g
protected FHIRTermGraph
graph
protected org.janusgraph.core.JanusGraph
janusGraph
protected LabelFilter
labelFilter
protected Map<String,String>
options
-
Constructor Summary
Constructors Constructor Description AbstractTermGraphLoader(Map<String,String> options)
AbstractTermGraphLoader(Map<String,String> options, FHIRTermGraph graph)
AbstractTermGraphLoader(Map<String,String> options, org.apache.commons.configuration.Configuration configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
close()
Close the loader and its underlying resources.protected LabelFilter
createLabelFilter(Map<String,String> options)
FHIRTermGraph
getGraph()
Get the underlyingFHIRTermGraph
instance.abstract void
load()
Load theFHIRTermGraph
.Map<String,String>
options()
Get the options used to create thisFHIRTermGraphLoader
.
-
-
-
Field Detail
-
graph
protected final FHIRTermGraph graph
-
janusGraph
protected final org.janusgraph.core.JanusGraph janusGraph
-
g
protected final org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource g
-
labelFilter
protected final LabelFilter labelFilter
-
-
Method Detail
-
load
public abstract void load()
Description copied from interface:FHIRTermGraphLoader
Load theFHIRTermGraph
.- Specified by:
load
in interfaceFHIRTermGraphLoader
-
close
public final void close()
Description copied from interface:FHIRTermGraphLoader
Close the loader and its underlying resources.- Specified by:
close
in interfaceFHIRTermGraphLoader
-
options
public final Map<String,String> options()
Description copied from interface:FHIRTermGraphLoader
Get the options used to create thisFHIRTermGraphLoader
.- Specified by:
options
in interfaceFHIRTermGraphLoader
- Returns:
- the options
-
getGraph
public final FHIRTermGraph getGraph()
Description copied from interface:FHIRTermGraphLoader
Get the underlyingFHIRTermGraph
instance.- Specified by:
getGraph
in interfaceFHIRTermGraphLoader
- Returns:
- the
FHIRTermGraph
instance
-
createLabelFilter
protected LabelFilter createLabelFilter(Map<String,String> options)
-
-