Class AbstractTermGraphLoader
- java.lang.Object
-
- org.linuxforhealth.fhir.term.graph.loader.impl.AbstractTermGraphLoader
-
- All Implemented Interfaces:
FHIRTermGraphLoader
- Direct Known Subclasses:
CodeSystemTermGraphLoader
,SnomedICD10MapTermGraphLoader
,SnomedTermGraphLoader
,UMLSTermGraphLoader
public abstract class AbstractTermGraphLoader extends java.lang.Object implements FHIRTermGraphLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.linuxforhealth.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 java.util.Map<java.lang.String,java.lang.String>
options
-
Constructor Summary
Constructors Constructor Description AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options)
AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options, org.apache.commons.configuration2.Configuration configuration)
AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options, FHIRTermGraph graph)
-
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(java.util.Map<java.lang.String,java.lang.String> options)
FHIRTermGraph
getGraph()
Get the underlyingFHIRTermGraph
instance.abstract void
load()
Load theFHIRTermGraph
.java.util.Map<java.lang.String,java.lang.String>
options()
Get the options used to create thisFHIRTermGraphLoader
.
-
-
-
Field Detail
-
options
protected final java.util.Map<java.lang.String,java.lang.String> options
-
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
-
-
Constructor Detail
-
AbstractTermGraphLoader
public AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options)
-
AbstractTermGraphLoader
public AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options, org.apache.commons.configuration2.Configuration configuration)
-
AbstractTermGraphLoader
public AbstractTermGraphLoader(java.util.Map<java.lang.String,java.lang.String> options, FHIRTermGraph graph)
-
-
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 java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> options)
-
-