Search in sources :

Example 1 with PrepareDataLoadResponse

use of com.alibaba.maxgraph.proto.groot.PrepareDataLoadResponse in project GraphScope by alibaba.

the class MaxGraphClient method prepareDataLoad.

public GraphSchema prepareDataLoad(List<DataLoadTarget> targets) {
    PrepareDataLoadRequest.Builder builder = PrepareDataLoadRequest.newBuilder();
    for (DataLoadTarget target : targets) {
        builder.addDataLoadTargets(target.toProto());
    }
    PrepareDataLoadResponse response = this.stub.prepareDataLoad(builder.build());
    return GraphDef.parseProto(response.getGraphDef());
}
Also used : DataLoadTarget(com.alibaba.maxgraph.sdkcommon.common.DataLoadTarget) PrepareDataLoadRequest(com.alibaba.maxgraph.proto.groot.PrepareDataLoadRequest) PrepareDataLoadResponse(com.alibaba.maxgraph.proto.groot.PrepareDataLoadResponse)

Aggregations

PrepareDataLoadRequest (com.alibaba.maxgraph.proto.groot.PrepareDataLoadRequest)1 PrepareDataLoadResponse (com.alibaba.maxgraph.proto.groot.PrepareDataLoadResponse)1 DataLoadTarget (com.alibaba.maxgraph.sdkcommon.common.DataLoadTarget)1