public class JanusGraphApp extends GraphApp
| Modifier and Type | Field and Description |
|---|---|
protected static String |
APP_NAME |
protected static String |
BERKELEYJE |
protected static String |
CASSANDRA |
protected static String |
CQL |
protected static String |
ELASTICSEARCH |
protected static String |
HBASE |
protected static String |
INMEMORY |
protected static String |
LUCENE |
protected static String |
MIXED_INDEX_CONFIG_NAME |
protected String |
mixedIndexConfigName |
protected static String |
SOLR |
protected boolean |
useMixedIndex |
conf, g, graph, propFileName, supportsGeoshape, supportsSchema, supportsTransactions| Constructor and Description |
|---|
JanusGraphApp(String fileName)
Constructs a graph app using the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCompositeIndexes(JanusGraphManagement management)
Creates the composite indexes.
|
protected void |
createEdgeLabels(JanusGraphManagement management)
Creates the edge labels.
|
void |
createElements()
Adds the vertices, edges, and properties to the graph.
|
protected void |
createMixedIndexes(JanusGraphManagement management)
Creates the mixed indexes.
|
protected void |
createProperties(JanusGraphManagement management)
Creates the properties for vertices, edges, and meta-properties.
|
void |
createSchema()
Creates the graph schema.
|
protected String |
createSchemaRequest()
Returns a string representation of the schema generation code.
|
protected void |
createVertexLabels(JanusGraphManagement management)
Creates the vertex labels.
|
void |
dropGraph()
Drops the graph instance.
|
protected JanusGraph |
getJanusGraph()
Returns the JanusGraph instance.
|
static void |
main(String[] args) |
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource |
openGraph()
Opens the graph instance.
|
closeGraph, deleteElements, getGeoFloatArray, readElements, runApp, updateElementsprotected static final String APP_NAME
protected static final String MIXED_INDEX_CONFIG_NAME
protected static final String BERKELEYJE
protected static final String CASSANDRA
protected static final String CQL
protected static final String HBASE
protected static final String INMEMORY
protected static final String LUCENE
protected static final String ELASTICSEARCH
protected static final String SOLR
protected boolean useMixedIndex
protected String mixedIndexConfigName
public JanusGraphApp(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
GraphAppopenGraph in class GraphApporg.apache.commons.configuration2.ex.ConfigurationExceptionIOExceptionpublic void dropGraph()
throws Exception
GraphApppublic void createElements()
GraphAppcreateElements in class GraphAppprotected JanusGraph getJanusGraph()
public void createSchema()
GraphAppcreateSchema in class GraphAppprotected void createVertexLabels(JanusGraphManagement management)
protected void createEdgeLabels(JanusGraphManagement management)
protected void createProperties(JanusGraphManagement management)
protected void createCompositeIndexes(JanusGraphManagement management)
protected void createMixedIndexes(JanusGraphManagement management)
protected String createSchemaRequest()
Copyright © 2012–2023. All rights reserved.