class JanusGraphDB extends GraphDB
| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
Logger
|
| Constructor and Description |
|---|
JanusGraphDB() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.tinkerpop.gremlin.structure.Graph |
connectGraphDBImpl(org.apache.commons.configuration2.Configuration configuration)
Obtain a graph DB with the connection details specified in the given
Configuration. |
protected void |
createIndexImpl(org.apache.tinkerpop.gremlin.structure.Graph db,
java.lang.String[] keys,
java.lang.Class<?>[] datatypes,
boolean element,
boolean uniq,
boolean mixed)
Create a single-property index in the given graph DB.
|
protected void |
createIndexImpl(org.apache.tinkerpop.gremlin.structure.Graph db,
java.lang.String key,
java.lang.Class<?> datatype,
boolean element,
boolean uniq,
boolean mixed)
Create a single-property index in the given graph DB.
|
private boolean |
reindex(org.janusgraph.core.JanusGraph graph,
org.janusgraph.core.schema.JanusGraphManagement mgmt,
java.lang.String idx)
Attempt to reindex the specified index (which was newly created).
|
createIndex, createIndex, createIndex, createIndex, obtainGraphDBprivate static final CentralLogger LOG
protected org.apache.tinkerpop.gremlin.structure.Graph connectGraphDBImpl(org.apache.commons.configuration2.Configuration configuration)
Configuration.connectGraphDBImpl in class GraphDBconfiguration - The connection details.protected void createIndexImpl(org.apache.tinkerpop.gremlin.structure.Graph db,
java.lang.String[] keys,
java.lang.Class<?>[] datatypes,
boolean element,
boolean uniq,
boolean mixed)
createIndexImpl in class GraphDBdb - The graph DB.keys - The property key names to be indexed. This will also be the index name.datatypes - The keys' types.element - true if the vertex element should be indexed, otherwise the edge element
will be indexed.uniq - true if the index should enforce uniqueness of the given key.mixed - Flag indicating this index will be created in 'mixed' mode, using an external
index.protected void createIndexImpl(org.apache.tinkerpop.gremlin.structure.Graph db,
java.lang.String key,
java.lang.Class<?> datatype,
boolean element,
boolean uniq,
boolean mixed)
createIndexImpl in class GraphDBdb - The graph DB.key - The property key name to be indexed. This will also be the index name.datatype - The key's type.element - true if the vertex element should be indexed, otherwise the edge element
will be indexed.uniq - true if the index should enforce uniqueness of the given key.mixed - Flag indicating this index will be created in 'mixed' mode, using an external
index.private boolean reindex(org.janusgraph.core.JanusGraph graph,
org.janusgraph.core.schema.JanusGraphManagement mgmt,
java.lang.String idx)
graph - The graph database instance.mgmt - The current management object in which the index was created.idx - The name of the index.true if the reindexing was successful, false otherwise.