use of com.alibaba.maxgraph.proto.groot.DropSchemaResponse in project GraphScope by alibaba.
the class MaxTestGraph method dropData.
private void dropData() {
CompletableFuture<GraphSchema> future = new CompletableFuture<>();
this.clientService.dropSchema(DropSchemaRequest.newBuilder().build(), new StreamObserver<DropSchemaResponse>() {
@Override
public void onNext(DropSchemaResponse value) {
future.complete(GraphDef.parseProto(value.getGraphDef()));
}
@Override
public void onError(Throwable t) {
future.completeExceptionally(t);
}
@Override
public void onCompleted() {
}
});
GraphSchema schema;
try {
schema = future.get();
} catch (Exception e) {
throw new MaxGraphException(e);
}
logger.info("drop schema: " + ((GraphDef) schema).toProto().toString());
}
Aggregations