showNodeProperty() | showEdgeProperty()
方法及相关类:
Response showNodeProperty(String schema)
Response showNodeProperty(String schema, RequestConfig requestConfig)
Response showEdgeProperty(String schema)
Response showEdgeProperty(String schema, RequestConfig requestConfig)
示例:获取 test 图集的点 schema 'client' 和边 schema 'transfer' 的所有属性
public class Main {
public static void main(String[] args) {
// 创建名为 conn 的连接并使用 default 图集,此部分代码省略
RequestConfig requestConfig = new RequestConfig();
requestConfig.setGraphName("test");
Response res1 = conn.showNodeProperty("client", requestConfig);
Response res2 = conn.showEdgeProperty("transfer", requestConfig);
}
}