Class FHIRTermGraphImpl
- java.lang.Object
-
- org.linuxforhealth.fhir.term.graph.impl.FHIRTermGraphImpl
-
- All Implemented Interfaces:
FHIRTermGraph
public class FHIRTermGraphImpl extends java.lang.Object implements FHIRTermGraph
-
-
Field Summary
-
Fields inherited from interface org.linuxforhealth.fhir.term.graph.FHIRTermGraph
IS_A
-
-
Constructor Summary
Constructors Constructor Description FHIRTermGraphImpl(org.apache.commons.configuration2.Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the graph and its underlying resources.org.apache.commons.configuration2.Configuration
configuration()
Get the configuration used to create thisFHIRTermGraph
.void
drop()
Drop the graph.void
dropAllVertices()
Drop all vertices and edges from the graph.org.janusgraph.core.JanusGraph
getJanusGraph()
Get the underlyingJanusGraph
instance behind thisFHIRTermGraph
.java.util.stream.Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>>
indexQuery(java.lang.String query, int limit, int offset)
Query the indexing backend using the Lucene query parser syntax and the provided limit and offset.org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
traversal()
Get the graph traversal source associated with the underlyingJanusGraph
instance.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linuxforhealth.fhir.term.graph.FHIRTermGraph
indexQuery
-
-
-
-
Method Detail
-
configuration
public org.apache.commons.configuration2.Configuration configuration()
Description copied from interface:FHIRTermGraph
Get the configuration used to create thisFHIRTermGraph
.- Specified by:
configuration
in interfaceFHIRTermGraph
- Returns:
- the configuration
-
getJanusGraph
public org.janusgraph.core.JanusGraph getJanusGraph()
Description copied from interface:FHIRTermGraph
Get the underlyingJanusGraph
instance behind thisFHIRTermGraph
.- Specified by:
getJanusGraph
in interfaceFHIRTermGraph
- Returns:
- the
JanusGraph
instance
-
traversal
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
Description copied from interface:FHIRTermGraph
Get the graph traversal source associated with the underlyingJanusGraph
instance.- Specified by:
traversal
in interfaceFHIRTermGraph
- Returns:
- the graph traversal source
-
indexQuery
public java.util.stream.Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>> indexQuery(java.lang.String query, int limit, int offset)
Description copied from interface:FHIRTermGraph
Query the indexing backend using the Lucene query parser syntax and the provided limit and offset.- Specified by:
indexQuery
in interfaceFHIRTermGraph
- Parameters:
query
- the querylimit
- the limitoffset
- the offset- Returns:
- results of the specified query using the provided limit and offset
-
close
public void close()
Description copied from interface:FHIRTermGraph
Close the graph and its underlying resources.- Specified by:
close
in interfaceFHIRTermGraph
-
drop
public void drop()
Description copied from interface:FHIRTermGraph
Drop the graph.- Specified by:
drop
in interfaceFHIRTermGraph
-
dropAllVertices
public void dropAllVertices()
Description copied from interface:FHIRTermGraph
Drop all vertices and edges from the graph.- Specified by:
dropAllVertices
in interfaceFHIRTermGraph
-
-