showSchema()
Method and class:
Response showSchema()
Response showSchema(RequestConfig requestConfig)
Example: Acquire all schemas of graphset 'test'
public class Main {
public static void main(String[] args) {
// omit code of establishing server connection 'conn' using graphset 'default'
RequestConfig requestConfig = new RequestConfig();
requestConfig.setGraphName("test");
Response res = conn.showSchema(requestConfig);
}
}
showNodeSchema() | showEdgeSchema()
Method and class:
Response showNodeSchema()
Response showNodeSchema(RequestConfig requestConfig)
Response showEdgeSchema()
Response showEdgeSchema(RequestConfig requestConfig)
Example: Acquire all node schemas and edge schemas of graphset 'test'
public class Main {
public static void main(String[] args) {
// omit code of establishing server connection 'conn' using graphset 'default'
RequestConfig requestConfig = new RequestConfig();
requestConfig.setGraphName("test");
Response res1 = conn.showNodeSchema(requestConfig);
Response res2 = conn.showEdgeSchema(requestConfig);
}
}
showNodeSchemas() | showEdgeSchemas()
Method and class:
List<Schema> showNodeSchemas()
List<Schema> showNodeSchemas(RequestConfig requestConfig)
List<Schema> showEdgeSchemas()
List<Schema> showEdgeSchemas(RequestConfig requestConfig)
Example: Acquire all node schemas and edge schemas of graphset 'test' as List type
public class Main {
public static void main(String[] args) {
// omit code of establishing server connection 'conn' using graphset 'default'
RequestConfig requestConfig = new RequestConfig();
requestConfig.setGraphName("test");
List<Schema> resList1 = conn.showNodeSchemas(requestConfig);
List<Schema> resList2 = conn.showEdgeSchemas(requestConfig);
}
}