apoc.result.NodeWithMapResult 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.result;
import org.neo4j.graphdb.Node;
import java.util.Collections;
import java.util.Map;
public class NodeWithMapResult {
public final Node node;
public final Map value;
public final Map error;
public NodeWithMapResult(Node node, Map value, Map error) {
this.node = node;
this.value = value;
this.error = error;
}
public static NodeWithMapResult withError(Node node, Map error) {
return new NodeWithMapResult(node, Collections.emptyMap(), error);
}
public static NodeWithMapResult withResult(Node node, Map value) {
return new NodeWithMapResult(node, value, Collections.emptyMap());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy