更新时间:2022-06-30 GMT+08:00
导出图
您可以使用GES提供的接口导出图的数据。示例代码如下:
public static void exportGraph(GraphClient graphClient) throws ApiException { ExportGraphReq exportGraphReq = new ExportGraphReq(); exportGraphReq.setGraphName(graphInfo.getGraphName()); exportGraphReq.setEdgeSetName("movie-edge.csv"); exportGraphReq.setVertexSetName("movie-vertex.csv"); exportGraphReq.setSchemaName("movie-schema.csv"); exportGraphReq.setGraphExportPath("imagebucket/movie/"); ObsParameters obsParameters = new ObsParameters(); obsParameters.setAccessKey("***); obsParameters.setSecretKey("***"); obsParameters.setRegion("cn-hk1"); exportGraphReq.setObsParameters(obsParameters); graphClient.exportGraph(exportGraphReq); }
父主题: 使用业务面SDK