public interface RelationType extends JanusGraphVertex, JanusGraphSchemaType
JanusGraphRelation
. RelationType can be configured through RelationTypeMaker
to
provide data verification, better storage efficiency, and higher retrieval performance.
JanusGraphRelation
has a unique type which defines many important characteristics of that relation.
RelationTypeMaker
which is accessed in the context of a JanusGraphTransaction
via SchemaManager.makePropertyKey(String)
for property keys or SchemaManager.makeEdgeLabel(String)
for edge labels. Identical methods exist on JanusGraph
.
Note, relation types will only be visible once the transaction in which they were created has been committed.
JanusGraphRelation
,
RelationTypeMaker
,
"Schema and Data Modeling" manual chapterModifier and Type | Method and Description |
---|---|
boolean |
isEdgeLabel()
Checks if this relation type is an edge label
|
boolean |
isPropertyKey()
Checks if this relation type is a property key
|
addEdge, isModified, label, property, property, property, query, vertexLabel
graph, hasId, id, isLoaded, isNew, isRemoved, remove, valueOrNull
edges, properties, property, vertices
isNew, longId
name
boolean isPropertyKey()
PropertyKey
boolean isEdgeLabel()
EdgeLabel
Copyright © 2012–2023. All rights reserved.