use of ai.grakn.rpc.generated.GrpcGrakn.TxResponse in project grakn by graknlabs.
the class TxObserver method runConceptMethod.
private void runConceptMethod(RunConceptMethod runConceptMethod) {
Concept concept = nonNull(tx().getConcept(GrpcUtil.getConceptId(runConceptMethod)));
GrpcConceptConverter converter = grpcConcept -> tx().getConcept(GrpcUtil.convert(grpcConcept.getId()));
ConceptMethod<?> conceptMethod = ConceptMethods.fromGrpc(converter, runConceptMethod.getConceptMethod());
TxResponse response = conceptMethod.run(grpcIterators, concept);
responseObserver.onNext(response);
}
Aggregations