use of com.alibaba.maxgraph.Message.PropertyEntityProto in project GraphScope by alibaba.
the class ResultParserUtils method parseVertex.
private static VertexResult parseVertex(Message.RawMessageProto message, GraphSchema schema, Graph graph) {
long id = message.getId();
int typeId = message.getTypeId();
int storeId = message.getStoreId();
VertexResult v = parseVertex(id, typeId, schema, graph, storeId);
for (PropertyEntityProto p : message.getExtra().getExtraValueProp().getPropListList()) {
Object value = parseValue(p.getPropValue(), schema, graph);
String name = getPropertyName(p.getPropId(), schema);
v.addProperty(new VertexPropertyResult(p.getPropId(), name, value, null));
}
return v;
}
Aggregations