public interface SchemaInspector
Modifier and Type | Method and Description |
---|---|
boolean |
containsEdgeLabel(String name)
Checks whether an edge label of the given name has been defined in the JanusGraph schema.
|
boolean |
containsPropertyKey(String name)
Checks whether a property key of the given name has been defined in the JanusGraph schema.
|
boolean |
containsRelationType(String name)
Checks whether a type with the specified name exists.
|
boolean |
containsVertexLabel(String name)
Whether a vertex label with the given name exists in the graph.
|
EdgeLabel |
getEdgeLabel(String name)
Returns the edge label with the given name.
|
EdgeLabel |
getOrCreateEdgeLabel(String name)
Returns the edge label with the given name.
|
PropertyKey |
getOrCreatePropertyKey(String name)
Returns the property key with the given name.
|
default PropertyKey |
getOrCreatePropertyKey(String name,
Object value)
Returns the property key with the given name.
|
default PropertyKey |
getOrCreatePropertyKey(String name,
Object value,
org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality)
Returns the property key with the given name.
|
VertexLabel |
getOrCreateVertexLabel(String name)
Returns the vertex label with the given name.
|
PropertyKey |
getPropertyKey(String name)
Returns the property key with the given name.
|
RelationType |
getRelationType(String name)
Returns the type with the given name.
|
VertexLabel |
getVertexLabel(String name)
Returns the vertex label with the given name.
|
boolean containsRelationType(String name)
name
- name of the typeRelationType getRelationType(String name)
name
- name of the type to returnRelationType
boolean containsPropertyKey(String name)
name
- name of the property keyPropertyKey getOrCreatePropertyKey(String name)
name
- name of the property key to returnIllegalArgumentException
- if a property key with the given name does not exist or if the
type with the given name is not a property keyPropertyKey
default PropertyKey getOrCreatePropertyKey(String name, Object value)
getOrCreatePropertyKey
methodname
- name of the property key to returnvalue
- the value of the property key. This param is not used by the default
implementationIllegalArgumentException
- if a property key with the given name does not exist or if the
type with the given name is not a property keyPropertyKey
default PropertyKey getOrCreatePropertyKey(String name, Object value, org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality)
getOrCreatePropertyKey
methodname
- name of the property key to returnvalue
- the value of the property key. This param is not used by the defaultcardinality
- the cardinality of the property key. This param is not used by the default
implementationIllegalArgumentException
- if a property key with the given name does not exist or if the
type with the given name is not a property keyPropertyKey
PropertyKey getPropertyKey(String name)
name
- boolean containsEdgeLabel(String name)
name
- name of the edge labelEdgeLabel getOrCreateEdgeLabel(String name)
name
- name of the edge label to returnIllegalArgumentException
- if an edge label with the given name does not exist or if the
type with the given name is not an edge labelEdgeLabel
EdgeLabel getEdgeLabel(String name)
name
- boolean containsVertexLabel(String name)
name
- VertexLabel getVertexLabel(String name)
name
- VertexLabel getOrCreateVertexLabel(String name)
DefaultSchemaMaker
.
Attempting to automatically create a vertex label might cause an exception depending on the configuration.
name
- Copyright © 2012–2024. All rights reserved.