@Override public GraphTransaction map(GraphTransaction transaction) throws Exception { for (Vertex vertex : transaction.getVertices()) { vertex.setProperties(null); vertex.setGraphIds(null); } for (Edge edge : transaction.getEdges()) { edge.setProperties(null); edge.setGraphIds(null); } return transaction; } }
@Override public GraphTransaction map(GraphTransaction transaction) throws Exception { for (Vertex vertex : transaction.getVertices()) { vertex.setProperties(null); vertex.setGraphIds(null); } for (Edge edge : transaction.getEdges()) { edge.setProperties(null); edge.setGraphIds(null); } return transaction; } }
row.setGraphIds(new GradoopIdSet()); while (source.hasTop()) { Key key = source.getTopKey();
@Override public void join(Edge edge, Vertex vertex, Collector<Edge> collector) throws Exception { if (vertex == null) { collector.collect(edge); } else if (edge != null) { REUSABLE_EDGE.setId(GradoopId.get()); REUSABLE_EDGE.setSourceId(isSourceNow ? vId : edge.getSourceId()); REUSABLE_EDGE.setTargetId(isSourceNow ? edge.getTargetId() : vId); REUSABLE_EDGE.setProperties(edge.getProperties()); REUSABLE_EDGE.setLabel(edge.getLabel()); REUSABLE_EDGE.setGraphIds(edge.getGraphIds()); collector.collect(REUSABLE_EDGE); } } }
@Override public void join(Edge edge, Vertex vertex, Collector<Edge> collector) throws Exception { if (vertex == null) { collector.collect(edge); } else if (edge != null) { REUSABLE_EDGE.setId(GradoopId.get()); REUSABLE_EDGE.setSourceId(isSourceNow ? vId : edge.getSourceId()); REUSABLE_EDGE.setTargetId(isSourceNow ? edge.getTargetId() : vId); REUSABLE_EDGE.setProperties(edge.getProperties()); REUSABLE_EDGE.setLabel(edge.getLabel()); REUSABLE_EDGE.setGraphIds(edge.getGraphIds()); collector.collect(REUSABLE_EDGE); } } }