@Override LogicalGraph applyGrouping(LogicalGraph graph, List<String> groupingKeys) { return graph.groupBy(groupingKeys, vertexAggregateFunctions, edgeGroupingKeys, edgeAggregateFunctions, strategy); }
@Override public LogicalGraph transformGraphHead( TransformationFunction<GraphHead> graphHeadTransformationFunction) { return transform(graphHeadTransformationFunction, null, null); }
/** * {@inheritDoc} */ @Override public GraphCollection query(String query, GraphStatistics graphStatistics) { return query(query, true, MatchStrategy.HOMOMORPHISM, MatchStrategy.ISOMORPHISM, graphStatistics); }
/** * Creates a new logical graph by union the vertex and edge sets of all graph * contained in the given collection. * * @param collection input collection * @return combined graph */ @Override public LogicalGraph execute(GraphCollection collection) { return collection.getConfig().getLogicalGraphFactory().fromDataSets( collection.getVertices(), collection.getEdges()); }
@Test public void testEmptyFromGraphsMethod() throws Exception { GraphCollection expected = factory.createEmptyCollection(); GraphCollection result = factory.fromGraphs(); collectAndAssertTrue(result.equalsByGraphElementData(expected)); }
/** * {@inheritDoc} */ @Override public LogicalGraph sample(SamplingAlgorithm algorithm) { return callForGraph(algorithm); }
/** * {@inheritDoc} */ @Override public GraphCollection apply(ApplicableUnaryGraphToGraphOperator op) { return callForCollection(op); }
/** * {@inheritDoc} */ @Override public LogicalGraph reduce(ReducibleBinaryGraphToGraphOperator op) { return callForGraph(op); }
/** * {@inheritDoc} */ @Override public GraphCollection query(String query, String constructionPattern, GraphStatistics graphStatistics) { return query(query, constructionPattern, true, MatchStrategy.HOMOMORPHISM, MatchStrategy.ISOMORPHISM, graphStatistics); }
@Override LogicalGraph applyGrouping(LogicalGraph graph, List<String> groupingKeys) { return graph.groupBy(vertexGroupingKeys, vertexAggregateFunctions, groupingKeys, edgeAggregateFunctions, strategy); }
@Override public LogicalGraph transformVertices( TransformationFunction<Vertex> vertexTransformationFunction) { return transform(null, vertexTransformationFunction, null); }
/** * {@inheritDoc} */ @Override public GraphCollection query(String query, boolean attachData, MatchStrategy vertexStrategy, MatchStrategy edgeStrategy, GraphStatistics graphStatistics) { return query(query, null, attachData, vertexStrategy, edgeStrategy, graphStatistics); }
@Override LogicalGraph applyGrouping(LogicalGraph graph, List<String> groupingKeys) { return graph.groupBy(groupingKeys, vertexAggregateFunctions, edgeGroupingKeys, edgeAggregateFunctions, strategy); }
@Override public LogicalGraph transformGraphHead( TransformationFunction<GraphHead> graphHeadTransformationFunction) { return transform(graphHeadTransformationFunction, null, null); }
@Override public GraphCollection query(String query, GraphStatistics graphStatistics) { return query(query, true, MatchStrategy.HOMOMORPHISM, MatchStrategy.ISOMORPHISM, graphStatistics); }
/** * {@inheritDoc} */ @Override public LogicalGraph groupBy(List<String> vertexGroupingKeys, List<String> edgeGroupingKeys) { return groupBy(vertexGroupingKeys, null, edgeGroupingKeys, null, GroupingStrategy.GROUP_REDUCE); }
@Override public LogicalGraph transformEdges( TransformationFunction<Edge> edgeTransformationFunction) { return transform(null, null, edgeTransformationFunction); }
@Override public GraphCollection query(String query, String constructionPattern, GraphStatistics graphStatistics) { return query(query, constructionPattern, true, MatchStrategy.HOMOMORPHISM, MatchStrategy.ISOMORPHISM, graphStatistics); }
@Override LogicalGraph applyGrouping(LogicalGraph graph, List<String> groupingKeys) { return graph.groupBy(vertexGroupingKeys, vertexAggregateFunctions, groupingKeys, edgeAggregateFunctions, strategy); }
@Override public GraphCollection query(String query, boolean attachData, MatchStrategy vertexStrategy, MatchStrategy edgeStrategy, GraphStatistics graphStatistics) { return query(query, null, attachData, vertexStrategy, edgeStrategy, graphStatistics); }