public class ImplicitKey extends EmptyRelationType implements SystemRelationType, PropertyKey
Modifier and Type | Field and Description |
---|---|
static ImplicitKey |
ADJACENT_ID |
static ImplicitKey |
ID |
static ImplicitKey |
JANUSGRAPHID |
static ImplicitKey |
KEY |
static ImplicitKey |
LABEL |
static Map<EntryMetaData,ImplicitKey> |
MetaData2ImplicitKey |
static ImplicitKey |
TIMESTAMP |
static ImplicitKey |
TTL |
static ImplicitKey |
VALUE |
static ImplicitKey |
VISIBILITY |
Modifier and Type | Method and Description |
---|---|
Cardinality |
cardinality()
The
Cardinality of this property key. |
<O> O |
computeProperty(InternalElement e) |
Class<?> |
dataType()
Returns the data type for this property key.
|
ConsistencyModifier |
getConsistencyModifier() |
boolean |
hasId()
Checks whether this entity has a unique identifier.
|
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isEdgeLabel()
Checks if this relation type is an edge label
|
boolean |
isInvisibleType() |
boolean |
isPropertyKey()
Checks if this relation type is a property key
|
boolean |
isUnidirected(org.apache.tinkerpop.gremlin.structure.Direction dir) |
Multiplicity |
multiplicity() |
String |
name()
Returns the unique name of this entity.
|
void |
setId(Object id) |
String |
toString() |
getBaseType, getKeyIndexes, getRelationIndexes, getSignature, getSortKey, getSortOrder, getStatus, getTTL, isInvisible
addEdge, addRelation, edges, getAddedRelations, getLifeCycle, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, isLoaded, isModified, isNew, isRemoved, it, label, loadRelations, properties, property, property, query, remove, removeRelation, tx, value, valueOrNull, vertexLabel, vertices
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBaseType, getKeyIndexes, getRelationIndexes, getSignature, getSortKey, getSortOrder, getStatus, getTTL
isNew, longId
addRelation, getAddedRelations, hasAddedRelations, hasLoadedRelations, hasRemovedRelations, it, loadRelations, query, removeRelation
addEdge, isModified, label, property, property, property, vertexLabel
edges, properties, property, vertices
getLifeCycle, graph, isInvisible, tx
isLoaded, isNew, isRemoved, remove, valueOrNull
public static final ImplicitKey ID
public static final ImplicitKey JANUSGRAPHID
public static final ImplicitKey LABEL
public static final ImplicitKey KEY
public static final ImplicitKey VALUE
public static final ImplicitKey ADJACENT_ID
public static final ImplicitKey TIMESTAMP
public static final ImplicitKey VISIBILITY
public static final ImplicitKey TTL
public static final Map<EntryMetaData,ImplicitKey> MetaData2ImplicitKey
public <O> O computeProperty(InternalElement e)
public Class<?> dataType()
PropertyKey
dataType
in interface PropertyKey
public Cardinality cardinality()
PropertyKey
Cardinality
of this property key.cardinality
in interface PropertyKey
public String name()
Namifiable
name
in interface Namifiable
public boolean isPropertyKey()
RelationType
isPropertyKey
in interface RelationType
PropertyKey
public boolean isEdgeLabel()
RelationType
isEdgeLabel
in interface RelationType
EdgeLabel
public boolean isInvisibleType()
isInvisibleType
in interface InternalRelationType
public Multiplicity multiplicity()
multiplicity
in interface InternalRelationType
public ConsistencyModifier getConsistencyModifier()
getConsistencyModifier
in interface InternalRelationType
public boolean isUnidirected(org.apache.tinkerpop.gremlin.structure.Direction dir)
isUnidirected
in interface InternalRelationType
public Object id()
JanusGraphElement
The unique identifier may only be set when the transaction in which entity is created commits. Some entities are never assigned a unique identifier if they depend on a parent entity.
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements
automatically be default. This behavior can be partially overridden by setting
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
id
in interface org.apache.tinkerpop.gremlin.structure.Element
id
in interface Idfiable
id
in interface JanusGraphElement
id
in class EmptyVertex
JanusGraphElement.hasId()
public boolean hasId()
JanusGraphElement
Note that some entities may never be assigned an identifier and others will only be assigned an identifier at the end of a transaction.
hasId
in interface JanusGraphElement
hasId
in class EmptyVertex
public void setId(Object id)
setId
in interface InternalElement
setId
in class EmptyVertex
public String toString()
toString
in class EmptyRelationType
Copyright © 2012–2023. All rights reserved.