Package com.ibm.fhir.term.graph.impl
Class FHIRTermGraphImpl
- java.lang.Object
-
- com.ibm.fhir.term.graph.impl.FHIRTermGraphImpl
-
- All Implemented Interfaces:
FHIRTermGraph
public class FHIRTermGraphImpl extends java.lang.Object implements FHIRTermGraph
-
-
Field Summary
-
Fields inherited from interface com.ibm.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 voidclose()Close the graph and its underlying resources.org.apache.commons.configuration2.Configurationconfiguration()Get the configuration used to create thisFHIRTermGraph.voiddrop()Drop the graph.voiddropAllVertices()Drop all vertices and edges from the graph.org.janusgraph.core.JanusGraphgetJanusGraph()Get the underlyingJanusGraphinstance 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.GraphTraversalSourcetraversal()Get the graph traversal source associated with the underlyingJanusGraphinstance.-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.fhir.term.graph.FHIRTermGraph
indexQuery
-
-
-
-
Method Detail
-
configuration
public org.apache.commons.configuration2.Configuration configuration()
Description copied from interface:FHIRTermGraphGet the configuration used to create thisFHIRTermGraph.- Specified by:
configurationin interfaceFHIRTermGraph- Returns:
- the configuration
-
getJanusGraph
public org.janusgraph.core.JanusGraph getJanusGraph()
Description copied from interface:FHIRTermGraphGet the underlyingJanusGraphinstance behind thisFHIRTermGraph.- Specified by:
getJanusGraphin interfaceFHIRTermGraph- Returns:
- the
JanusGraphinstance
-
traversal
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
Description copied from interface:FHIRTermGraphGet the graph traversal source associated with the underlyingJanusGraphinstance.- Specified by:
traversalin 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:FHIRTermGraphQuery the indexing backend using the Lucene query parser syntax and the provided limit and offset.- Specified by:
indexQueryin 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:FHIRTermGraphClose the graph and its underlying resources.- Specified by:
closein interfaceFHIRTermGraph
-
drop
public void drop()
Description copied from interface:FHIRTermGraphDrop the graph.- Specified by:
dropin interfaceFHIRTermGraph
-
dropAllVertices
public void dropAllVertices()
Description copied from interface:FHIRTermGraphDrop all vertices and edges from the graph.- Specified by:
dropAllVerticesin interfaceFHIRTermGraph
-
-