D - The data type of this resource type.
Supported Types include: String, Long, Double, and Booleanpublic class AttributeImpl<D> extends ThingImpl<Attribute<D>,AttributeType<D>> implements Attribute<D>
Represent a literal resource in the graph.
Acts as an Thing when relating to other instances except it has the added functionality of:
1. It is unique to its AttributeType based on it's value.
2. It has a AttributeType.DataType associated with it which constrains the allowed values.
| Modifier and Type | Method and Description |
|---|---|
static <D> AttributeImpl<D> |
create(VertexElement vertexElement,
AttributeType<D> type,
Object value) |
AttributeType.DataType<D> |
dataType() |
static AttributeImpl |
from(Attribute attribute) |
static <D> AttributeImpl<D> |
get(VertexElement vertexElement) |
String |
innerToString() |
java.util.stream.Stream<Thing> |
owners() |
D |
value() |
attributeInferred, attributes, delete, getIndex, has, isInferred, keys, relationships, relhas, roles, type, unhasbaseType, caches, createShard, currentShard, deleteNode, equals, hashCode, id, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasAttribute, has, isAttribute, owner, type, unhasasThing, attributes, isInferred, isThing, keys, relationships, relhas, rolesasAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asRule, asSchemaConcept, asType, delete, id, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isRule, isSchemaConcept, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic static <D> AttributeImpl<D> get(VertexElement vertexElement)
public static <D> AttributeImpl<D> create(VertexElement vertexElement, AttributeType<D> type, Object value)
public AttributeType.DataType<D> dataType()
dataType in interface Attribute<D>Attribute's AttributeType.public java.util.stream.Stream<Thing> owners()
public D value()
public String innerToString()
public static AttributeImpl from(Attribute attribute)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.