public class RemoteGraphApp extends JanusGraphApp
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.tinkerpop.gremlin.driver.Client |
client |
protected org.apache.tinkerpop.gremlin.driver.Cluster |
cluster |
protected org.apache.commons.configuration2.Configuration |
conf |
protected org.janusgraph.core.JanusGraph |
janusgraph |
APP_NAME, BERKELEYJE, CASSANDRA, CQL, ELASTICSEARCH, HBASE, INMEMORY, LUCENE, MIXED_INDEX_CONFIG_NAME, mixedIndexConfigName, SOLR, useMixedIndexg, graph, propFileName, supportsGeoshape, supportsSchema, supportsTransactions| Constructor and Description |
|---|
RemoteGraphApp(String fileName)
Constructs a graph app using the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeGraph() |
void |
createElements() |
void |
createSchema() |
static void |
main(String[] args) |
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource |
openGraph() |
createCompositeIndexes, createEdgeLabels, createMixedIndexes, createProperties, createSchemaRequest, createVertexLabels, dropGraph, getJanusGraphdeleteElements, getGeoFloatArray, readElements, runApp, updateElementsprotected org.janusgraph.core.JanusGraph janusgraph
protected org.apache.tinkerpop.gremlin.driver.Cluster cluster
protected org.apache.tinkerpop.gremlin.driver.Client client
protected org.apache.commons.configuration2.Configuration conf
public RemoteGraphApp(String fileName)
fileName - location of the properties filepublic org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource openGraph()
throws org.apache.commons.configuration2.ex.ConfigurationException,
IOException
openGraph in class JanusGraphApporg.apache.commons.configuration2.ex.ConfigurationExceptionIOExceptionpublic void createElements()
createElements in class JanusGraphApppublic void closeGraph()
throws Exception
closeGraph in class GraphAppExceptionpublic void createSchema()
createSchema in class JanusGraphApppublic static void main(String[] args)
Copyright © 2012–2024. All rights reserved.