Class FHIRTermGraphImpl

    • Field Summary

    • 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 this FHIRTermGraph.
      void drop()
      Drop the graph.
      void dropAllVertices()
      Drop all vertices and edges from the graph.
      org.janusgraph.core.JanusGraph getJanusGraph()
      Get the underlying JanusGraph instance behind this FHIRTermGraph.
      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 underlying JanusGraph instance.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FHIRTermGraphImpl

        public FHIRTermGraphImpl​(org.apache.commons.configuration2.Configuration configuration)
    • Method Detail

      • configuration

        public org.apache.commons.configuration2.Configuration configuration()
        Description copied from interface: FHIRTermGraph
        Get the configuration used to create this FHIRTermGraph.
        Specified by:
        configuration in interface FHIRTermGraph
        Returns:
        the configuration
      • getJanusGraph

        public org.janusgraph.core.JanusGraph getJanusGraph()
        Description copied from interface: FHIRTermGraph
        Get the underlying JanusGraph instance behind this FHIRTermGraph.
        Specified by:
        getJanusGraph in interface FHIRTermGraph
        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 underlying JanusGraph instance.
        Specified by:
        traversal in interface FHIRTermGraph
        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 interface FHIRTermGraph
        Parameters:
        query - the query
        limit - the limit
        offset - 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 interface FHIRTermGraph