Interface FHIRTermGraph
-
- All Known Implementing Classes:
FHIRTermGraphImpl
public interface FHIRTermGraph
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IS_A
The edge label that represents an is-a relationship in the graph
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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
.default java.util.stream.Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>>
indexQuery(java.lang.String query)
Query the indexing backend using the Lucene query parser syntax.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.
-
-
-
Field Detail
-
IS_A
static final java.lang.String IS_A
The edge label that represents an is-a relationship in the graph- See Also:
- Constant Field Values
-
-
Method Detail
-
configuration
org.apache.commons.configuration2.Configuration configuration()
Get the configuration used to create thisFHIRTermGraph
.- Returns:
- the configuration
-
getJanusGraph
org.janusgraph.core.JanusGraph getJanusGraph()
Get the underlyingJanusGraph
instance behind thisFHIRTermGraph
.- Returns:
- the
JanusGraph
instance
-
traversal
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
Get the graph traversal source associated with the underlyingJanusGraph
instance.- Returns:
- the graph traversal source
-
indexQuery
default java.util.stream.Stream<org.janusgraph.core.JanusGraphIndexQuery.Result<org.janusgraph.core.JanusGraphVertex>> indexQuery(java.lang.String query)
Query the indexing backend using the Lucene query parser syntax.- Parameters:
query
- the query- Returns:
- results of the specified query
-
indexQuery
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.- Parameters:
query
- the querylimit
- the limitoffset
- the offset- Returns:
- results of the specified query using the provided limit and offset
-
close
void close()
Close the graph and its underlying resources.
-
drop
void drop()
Drop the graph.
-
dropAllVertices
void dropAllVertices()
Drop all vertices and edges from the graph.
-
-