public static final class Grakn.Transaction extends Object implements GraknTx, GraknAdmin
GraknTx and GraknAdmin that communicates with a Grakn server using gRPC.| Modifier and Type | Class and Description |
|---|---|
static class |
Grakn.Transaction.Iterator<T>
A client-side iterator over gRPC messages.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaAttributeType, getMetaConcept, getMetaEntityType, getMetaRelationType, getMetaRole, getMetaRuleabort, keyspace, putAttributeType, putEntityType, putRelationshipType, putRole, putRulepublic GraknAdmin admin()
public GraknTxType txType()
public GraknSession session()
public void close()
close in interface GraknTxclose in interface AutoCloseablepublic QueryBuilder graql()
public QueryExecutor queryExecutor()
queryExecutor in interface GraknAdminpublic void commit()
throws InvalidKBException
commit in interface GraknTxInvalidKBException@Nullable public EntityType getEntityType(String label)
getEntityType in interface GraknTx@Nullable public RelationshipType getRelationshipType(String label)
getRelationshipType in interface GraknTx@Nullable public <V> AttributeType<V> getAttributeType(String label)
getAttributeType in interface GraknTx@Nullable public <T extends SchemaConcept> T getSchemaConcept(Label label)
getSchemaConcept in interface GraknTx@Nullable public <T extends Concept> T getConcept(ConceptId id)
getConcept in interface GraknTxpublic <V> Collection<Attribute<V>> getAttributesByValue(V value)
getAttributesByValue in interface GraknTxpublic EntityType putEntityType(Label label)
putEntityType in interface GraknTxpublic <V> AttributeType<V> putAttributeType(Label label, AttributeType.DataType<V> dataType)
putAttributeType in interface GraknTxpublic RelationshipType putRelationshipType(Label label)
putRelationshipType in interface GraknTxpublic java.util.stream.Stream<SchemaConcept> sups(SchemaConcept schemaConcept)
sups in interface GraknAdminpublic SessionProto.Transaction.Res runConceptMethod(ConceptId id, ConceptProto.Method.Req method)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.