33 Map<String, ValueWrapper> properties,
34 ResultGraphSchemas graphSchemas) {
35 this.graphId = graphId;
36 this.graphName = graphSchemas.getGraphSchema(graphId).getGraphName();
37 this.edgeTypeId = edgeTypeId;
38 int noDirectedTypeId = edgeTypeId & 0x3FFFFFFF;
39 this.edgeTypeName = graphSchemas
40 .getGraphSchema(graphId)
41 .getEdgeSchema(noDirectedTypeId)
43 this.labels = graphSchemas
44 .getGraphSchema(graphId)
45 .getEdgeSchema(noDirectedTypeId)
48 this.properties = properties;
50 int edgeTypeMoveBits = EDGE_TYPE_ID_SIZE * 8 - 2;
51 int directionBits = (edgeTypeId >> edgeTypeMoveBits) & 0x3;
52 switch (directionBits) {
54 this.direction = Direction.OUTGOING;
57 this.direction = Direction.INCOMING;
61 this.direction = Direction.UNDIRECTED;
64 this.direction = Direction.KNOWN;
66 if (this.direction == Direction.INCOMING) {
194 return Objects.hash(graphId, edgeTypeId, rank, srcId, dstId, getDecodeType());
225 OUTGOING, INCOMING, UNDIRECTED, KNOWN;