public class ConceptLog extends Object
Tracks Graph Mutations.
This package keeps track of changes to the rootGraph that need to be validated. This includes: new concepts, concepts that have had edges added/deleted, edge cases, for example, relationship where a new role player is added.
| Modifier and Type | Method and Description |
|---|---|
void |
clearTransaction()
Removes all the concepts from the transaction tracker
|
ai.grakn.graph.internal.RelationImpl |
getCachedRelation(String index)
Gets a cached relation by index.
|
Set<String> |
getModifiedCastingIds() |
Set<ai.grakn.graph.internal.ConceptImpl> |
getModifiedConcepts() |
Set<String> |
getModifiedResourceIds() |
void |
putConcept(ai.grakn.graph.internal.ConceptImpl concept) |
void |
removeConcept(ai.grakn.graph.internal.ConceptImpl c) |
public void clearTransaction()
public void putConcept(ai.grakn.graph.internal.ConceptImpl concept)
concept - The concept to be later validatedpublic Set<ai.grakn.graph.internal.ConceptImpl> getModifiedConcepts()
public Set<String> getModifiedCastingIds()
public Set<String> getModifiedResourceIds()
public void removeConcept(ai.grakn.graph.internal.ConceptImpl c)
c - The concept to nio longer trackpublic ai.grakn.graph.internal.RelationImpl getCachedRelation(String index)
index - Copyright © 2017 Grakn Labs Ltd. All rights reserved.