public class GrpcUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GrpcUtil.ErrorType
Enumeration of all sub-classes of
GraknException that can be thrown during gRPC calls. |
| Constructor and Description |
|---|
GrpcUtil() |
public static GrpcGrakn.TxRequest openRequest(Keyspace keyspace, GraknTxType txType)
public static GrpcGrakn.TxRequest commitRequest()
public static GrpcGrakn.TxRequest execQueryRequest(Query<?> query)
public static GrpcGrakn.TxRequest execQueryRequest(String queryString, @Nullable Boolean infer)
public static GrpcGrakn.TxRequest nextRequest(GrpcIterator.IteratorId iteratorId)
public static GrpcGrakn.TxRequest stopRequest(GrpcIterator.IteratorId iteratorId)
public static GrpcGrakn.TxRequest runConceptMethodRequest(ConceptId id, ConceptMethod<?> conceptMethod)
public static GrpcGrakn.TxRequest getConceptRequest(ConceptId id)
public static GrpcGrakn.TxRequest getSchemaConceptRequest(Label label)
public static GrpcGrakn.TxRequest getAttributesByValueRequest(Object value)
public static GrpcGrakn.TxRequest putEntityTypeRequest(Label label)
public static GrpcGrakn.TxRequest putRelationshipTypeRequest(Label label)
public static GrpcGrakn.TxRequest putAttributeTypeRequest(Label label, AttributeType.DataType<?> dataType)
public static GrpcGrakn.TxRequest putRoleRequest(Label label)
public static GrpcGrakn.TxRequest putRuleRequest(Label label, Pattern when, Pattern then)
public static GrpcGrakn.TxResponse doneResponse()
public static GrpcGrakn.TxResponse iteratorResponse(GrpcIterator.IteratorId iteratorId)
public static GrpcGrakn.TxResponse conceptResponse(Concept concept)
public static GrpcGrakn.TxResponse optionalConceptResponse(Optional<Concept> concept)
public static GrpcGrakn.TxResponse rolePlayerResponse(RolePlayer rolePlayer)
public static GrpcGrakn.DeleteRequest deleteRequest(GrpcGrakn.Open open)
public static GrpcGrakn.DeleteResponse deleteResponse()
public static Keyspace getKeyspace(GrpcGrakn.Open open)
public static GraknTxType getTxType(GrpcGrakn.Open open)
public static ConceptId getConceptId(GrpcGrakn.RunConceptMethod runConceptMethodRequest)
public static GrpcConcept.Concept convert(Concept concept)
public static GrpcConcept.OptionalConcept convertOptionalConcept(Optional<Concept> concept)
public static GrpcConcept.Concepts convert(java.util.stream.Stream<? extends Concept> concepts)
public static java.util.stream.Stream<? extends Concept> convert(GrpcConceptConverter conceptConverter, GrpcConcept.Concepts concepts)
public static GraknTxType convert(GrpcGrakn.TxType txType)
public static GrpcGrakn.Keyspace convert(Keyspace keyspace)
public static ConceptId convert(GrpcConcept.ConceptId id)
public static Label convert(GrpcConcept.Label label)
public static Object convert(GrpcConcept.AttributeValue value)
public static AttributeType.DataType<?> convert(GrpcConcept.DataType dataType)
public static GrpcConcept.DataType convert(AttributeType.DataType<?> dataType)
public static GrpcConcept.OptionalDataType convertOptionalDataType(Optional<AttributeType.DataType<?>> dataType)
public static Optional<AttributeType.DataType<?>> convert(GrpcConcept.OptionalDataType dataType)
public static GrpcConcept.BaseType getBaseType(Concept concept)
public static GrpcConcept.Pattern convert(Pattern pattern)
public static Pattern convert(GrpcConcept.Pattern pattern)
public static GrpcConcept.OptionalPattern convert(Optional<Pattern> pattern)
@Nullable public static Optional<Pattern> convert(GrpcConcept.OptionalPattern pattern)
public static Map<Role,Set<Thing>> convert(GrpcConceptConverter converter, GrpcConcept.RolePlayers allRolePlayers)
public static GrpcConcept.RolePlayers convert(Map<Role,Set<Thing>> rolePlayers)
public static GrpcConcept.RolePlayer convert(RolePlayer rolePlayer)
public static GrpcConcept.OptionalRegex convertRegex(Optional<String> regex)
public static Optional<String> convert(GrpcConcept.OptionalRegex regex)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.