use of com.alibaba.maxgraph.sdkcommon.graph.CompositeId in project GraphScope by alibaba.
the class VertexResponseFunction method apply.
@Override
public Vertex apply(GremlinQuery.VertexResponse nextV) {
GremlinQuery.VertexId id = nextV.getId();
CompositeId rId = new CompositeId(id.getId(), id.getTypeId());
GraphElement type = schema.getElement(id.getTypeId());
Map<String, Object> properties = RpcProcessorUtils.deserializeProperty(nextV.getPros().toByteArray(), type, schema);
return new Vertex(rId, type.getLabel(), properties, this.graph);
}
Aggregations