org.securegraph.util.VerticesToEdgeIdsIterable Maven / Gradle / Ivy
The newest version!
package org.securegraph.util;
import org.securegraph.Authorizations;
import org.securegraph.Direction;
import org.securegraph.Vertex;
import java.util.Iterator;
public class VerticesToEdgeIdsIterable implements Iterable {
private final Iterable vertices;
private final Authorizations authorizations;
public VerticesToEdgeIdsIterable(Iterable vertices, Authorizations authorizations) {
this.vertices = vertices;
this.authorizations = authorizations;
}
@Override
public Iterator iterator() {
return new SelectManyIterable(this.vertices) {
@Override
public Iterable getIterable(Vertex vertex) {
return vertex.getEdgeIds(Direction.BOTH, authorizations);
}
}.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy