public final class Neo4jGraph extends Object implements Graph, WrappedGraph<org.neo4j.tinkerpop.api.Neo4jGraphAPI>
| Modifier and Type | Class and Description |
|---|---|
class |
Neo4jGraph.Neo4jGraphFeatures |
Graph.Exceptions, Graph.Features, Graph.Hidden, Graph.OptIn, Graph.OptIns, Graph.OptOut, Graph.OptOuts, Graph.Variables| Modifier and Type | Field and Description |
|---|---|
protected org.neo4j.tinkerpop.api.Neo4jGraphAPI |
baseGraph |
static String |
CONFIG_CONF |
static String |
CONFIG_DIRECTORY |
static String |
CONFIG_META_PROPERTIES |
static String |
CONFIG_MULTI_PROPERTIES |
protected org.apache.commons.configuration.BaseConfiguration |
configuration |
protected Graph.Features |
features |
static org.slf4j.Logger |
LOGGER |
protected Neo4jTrait |
trait |
| Modifier | Constructor and Description |
|---|---|
protected |
Neo4jGraph(org.apache.commons.configuration.Configuration configuration) |
protected |
Neo4jGraph(org.neo4j.tinkerpop.api.Neo4jGraphAPI baseGraph,
org.apache.commons.configuration.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
addVertex(Object... keyValues) |
void |
close()
This implementation of
close will also close the current transaction on the thread, but it
is up to the caller to deal with dangling transactions in other threads prior to calling this method. |
GraphComputer |
compute() |
<C extends GraphComputer> |
compute(Class<C> graphComputerClass) |
org.apache.commons.configuration.Configuration |
configuration() |
<S,E> GraphTraversal<S,E> |
cypher(String query)
Execute the Cypher query and get the result set as a
GraphTraversal. |
<S,E> GraphTraversal<S,E> |
cypher(String query,
Map<String,Object> parameters)
Execute the Cypher query with provided parameters and get the result set as a
GraphTraversal. |
Iterator<Edge> |
edges(Object... edgeIds) |
Graph.Features |
features() |
org.neo4j.tinkerpop.api.Neo4jGraphAPI |
getBaseGraph() |
Neo4jTrait |
getTrait() |
static Neo4jGraph |
open(org.apache.commons.configuration.Configuration configuration)
Open a new
Neo4jGraph instance. |
static Neo4jGraph |
open(org.neo4j.tinkerpop.api.Neo4jGraphAPI baseGraph)
Construct a Neo4jGraph instance using an existing Neo4j raw instance.
|
static Neo4jGraph |
open(String directory)
Construct a Neo4jGraph instance by specifying the directory to create the database in..
|
String |
toString() |
Transaction |
tx() |
Graph.Variables |
variables() |
Iterator<Vertex> |
vertices(Object... vertexIds) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddVertex, io, traversal, traversalgetHostingVertexpublic static final org.slf4j.Logger LOGGER
protected Graph.Features features
protected org.neo4j.tinkerpop.api.Neo4jGraphAPI baseGraph
protected org.apache.commons.configuration.BaseConfiguration configuration
public static final String CONFIG_DIRECTORY
public static final String CONFIG_CONF
public static final String CONFIG_META_PROPERTIES
public static final String CONFIG_MULTI_PROPERTIES
protected Neo4jTrait trait
protected Neo4jGraph(org.neo4j.tinkerpop.api.Neo4jGraphAPI baseGraph,
org.apache.commons.configuration.Configuration configuration)
protected Neo4jGraph(org.apache.commons.configuration.Configuration configuration)
public static Neo4jGraph open(org.apache.commons.configuration.Configuration configuration)
Neo4jGraph instance.configuration - the configuration for the instanceGraphpublic static Neo4jGraph open(String directory)
public static Neo4jGraph open(org.neo4j.tinkerpop.api.Neo4jGraphAPI baseGraph)
public Neo4jTrait getTrait()
public <C extends GraphComputer> C compute(Class<C> graphComputerClass)
public GraphComputer compute()
public Transaction tx()
public Graph.Variables variables()
public org.apache.commons.configuration.Configuration configuration()
configuration in interface Graphpublic void close()
throws Exception
close will also close the current transaction on the thread, but it
is up to the caller to deal with dangling transactions in other threads prior to calling this method.close in interface AutoCloseableclose in interface GraphExceptionpublic Graph.Features features()
public org.neo4j.tinkerpop.api.Neo4jGraphAPI getBaseGraph()
getBaseGraph in interface WrappedGraph<org.neo4j.tinkerpop.api.Neo4jGraphAPI>public <S,E> GraphTraversal<S,E> cypher(String query)
GraphTraversal.query - the Cypher query to executepublic <S,E> GraphTraversal<S,E> cypher(String query, Map<String,Object> parameters)
GraphTraversal.query - the Cypher query to executeparameters - the parameters of the Cypher queryCopyright © 2013–2019 Apache Software Foundation. All rights reserved.