apoc.get.Get Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apoc-common Show documentation
Show all versions of apoc-common Show documentation
Data types package for Neo4j Procedures
package apoc.get;
import apoc.result.NodeResult;
import apoc.result.RelationshipResult;
import apoc.util.Util;
import org.neo4j.graphdb.Transaction;
import org.neo4j.procedure.Name;
import java.util.stream.Stream;
public class Get {
public Transaction tx;
public Get(Transaction tx) {
this.tx = tx;
}
public Stream nodes(@Name("nodes") Object ids) {
return Util.nodeStream(tx, ids).map(NodeResult::new);
}
public Stream rels(@Name("rels") Object ids) {
return Util.relsStream(tx, ids).map(RelationshipResult::new);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy