Search in sources :

Example 6 with GraphNode

use of org.locationtech.geogig.storage.GraphDatabase.GraphNode in project GeoGig by boundlessgeo.

the class CheckSparsePath method _call.

/**
     * Determines if there are any sparse commits between the start commit and the end commit, not
     * including the end commit.
     * 
     * @return true if there are any sparse commits between start and end
     */
@Override
protected Boolean _call() {
    Preconditions.checkState(start != null, "start commit has not been set.");
    Preconditions.checkState(end != null, "end commit has not been set.");
    GraphNode node = graphDb.getNode(start);
    return isSparsePath(node, end, false);
}
Also used : GraphNode(org.locationtech.geogig.storage.GraphDatabase.GraphNode)

Aggregations

GraphNode (org.locationtech.geogig.storage.GraphDatabase.GraphNode)6 GraphEdge (org.locationtech.geogig.storage.GraphDatabase.GraphEdge)4 LinkedList (java.util.LinkedList)3 HashSet (java.util.HashSet)2 ObjectId (org.locationtech.geogig.api.ObjectId)1 GraphDatabase (org.locationtech.geogig.storage.GraphDatabase)1