use of com.tinkerpop.blueprints.impls.neo4j2.iterate.Neo4j2EdgeIterable in project blueprints by tinkerpop.
the class Neo4j2Graph method getEdges.
public Iterable<Edge> getEdges(final String key, final Object value) {
this.autoStartTransaction(false);
final AutoIndexer<?> indexer = this.rawGraph.index().getRelationshipAutoIndexer();
if (indexer.isEnabled() && indexer.getAutoIndexedProperties().contains(key))
return new Neo4j2EdgeIterable(this.rawGraph.index().getRelationshipAutoIndexer().getAutoIndex().get(key, value), this);
else
return new PropertyFilteredIterable<Edge>(key, value, this.getEdges());
}
Aggregations