use of com.alibaba.maxgraph.proto.groot.SubmitBatchDdlRequest in project GraphScope by alibaba.
the class SchemaClient method submitBatchDdl.
public long submitBatchDdl(String requestId, String sessionId, DdlRequestBatchPb ddlRequestBatchPb) {
SubmitBatchDdlRequest request = SubmitBatchDdlRequest.newBuilder().setRequestId(requestId).setSessionId(sessionId).setDdlRequests(ddlRequestBatchPb).build();
SubmitBatchDdlResponse submitBatchDdlResponse = stub.submitBatchDdl(request);
if (submitBatchDdlResponse.getSuccess()) {
long ddlSnapshotId = submitBatchDdlResponse.getDdlSnapshotId();
return ddlSnapshotId;
} else {
throw new DdlException(submitBatchDdlResponse.getMsg());
}
}
Aggregations