Skip to content

Commit

Permalink
[dbs-leipzig#1303] Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
timo95 committed Aug 8, 2019
1 parent 93e3979 commit f2f881f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
Expand Up @@ -28,8 +28,6 @@
import org.gradoop.flink.model.impl.functions.graphcontainment.InGraph;
import org.gradoop.flink.util.GradoopFlinkConfig;

import java.util.Arrays;

/**
* Default interface of a graph collection instance.
*
Expand Down Expand Up @@ -85,14 +83,6 @@ default LG getGraph(final GradoopId graphID) {
return getGraphFactory().fromDataSets(graphHead, vertices, edges);
}

@Override
default GC getGraphs(final GradoopId... identifiers) {
GradoopIdSet graphIds = new GradoopIdSet();
graphIds.addAll(Arrays.asList(identifiers));

return getGraphs(graphIds);
}

@Override
default GC getGraphs(final GradoopIdSet identifiers) {
DataSet<G> newGraphHeads = this.getGraphHeads()
Expand Down
Expand Up @@ -92,8 +92,9 @@ public interface BaseGraphCollectionOperators<
* @param identifiers graph identifiers
* @return collection containing requested base graphs
*/
GC getGraphs(final GradoopId... identifiers);

default GC getGraphs(final GradoopId... identifiers) {
return getGraphs(GradoopIdSet.fromExisting(identifiers));
}
/**
* Extracts base graphs from collection using their identifiers.
*
Expand Down Expand Up @@ -262,6 +263,7 @@ default DataSet<Boolean> equalsByGraphElementIds(GC otherCollection) {
* indicates if the graph collection is equal to the given graph collection.
* <p>
* Equality is defined on the element data contained inside the collection, i.e. vertices and edges.
* This is limited to EPGM data (IDs, Label, Properties). All extensions of EPGM are ignored.
*
* @param otherCollection graph collection to compare with
* @return 1-element dataset containing {@code true} if the two collections
Expand All @@ -279,6 +281,7 @@ default DataSet<Boolean> equalsByGraphElementData(GC otherCollection) {
* indicates if the graph collection is equal to the given graph collection.
* <p>
* Equality is defined on the data contained inside the collection, i.e. graph heads, vertices and edges.
* This is limited to EPGM data (IDs, Label, Properties). All extensions of EPGM are ignored.
*
* @param otherCollection graph collection to compare with
* @return 1-element dataset containing {@code true} if the two collections
Expand All @@ -304,8 +307,8 @@ default DataSet<Boolean> equalsByGraphData(GC otherCollection) {
GC callForCollection(UnaryBaseGraphCollectionToBaseGraphCollectionOperator<GC> operator);

/**
* Calls the given binary collection to value operator using that
* graph collection and the input graph collection.
* Calls the given binary collection to value operator using that graph collection and the
* input graph collection.
*
* @param operator binary collection to value operator
* @param otherCollection second input collection for operator
Expand All @@ -315,8 +318,8 @@ default DataSet<Boolean> equalsByGraphData(GC otherCollection) {
<T> T callForCollection(BinaryBaseGraphCollectionToValueOperator<GC, T> operator, GC otherCollection);

/**
* Calls the given binary collection to collection operator using that
* graph collection and the input graph collection.
* Calls the given binary collection to collection operator using that graph collection and the
* input graph collection.
*
* @param operator binary collection to collection operator
* @param otherCollection second input collection for operator
Expand Down Expand Up @@ -346,11 +349,10 @@ default GC apply(ApplicableUnaryBaseGraphToBaseGraphOperator<GC> operator) {

/**
* Transforms a graph collection into a base graph by applying a
* {@link org.gradoop.flink.model.api.operators.BinaryBaseGraphToBaseGraphOperator}
* pairwise on the elements of the collection.
* {@link ReducibleBinaryBaseGraphToBaseGraphOperator} pairwise on the elements of the collection.
*
* @param operator reducible binary graph to graph operator
* @return base graph
* @return base graph returned by the operator
*
* @see Exclusion
* @see Overlap
Expand Down
Expand Up @@ -28,7 +28,7 @@
* superclass of data-bases string representations of EPGM elements, i.e.,
* such including label and properties
*
* @param <EL> EPGM element type
* @param <EL> element type
*/
public abstract class ElementToDataString<EL extends Element> {

Expand Down

0 comments on commit f2f881f

Please sign in to comment.