Package apoc.export.cypher.formatter
Class UpdateAllCypherFormatter
java.lang.Object
apoc.export.cypher.formatter.UpdateAllCypherFormatter
- All Implemented Interfaces:
CypherFormatter
- Since:
- 16-06-2017
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildStatementForNodes(String nodeClause, String setClause, Iterable<org.neo4j.graphdb.Node> nodes, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) voidbuildStatementForRelationships(String relationshipClause, String setClause, Iterable<org.neo4j.graphdb.Relationship> relationship, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) protected StringmergeStatementForNode(CypherFormat cypherFormat, org.neo4j.graphdb.Node node, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, Set<String> indexNames) mergeStatementForRelationship(CypherFormat cypherFormat, org.neo4j.graphdb.Relationship relationship, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, ExportConfig exportConfig) statementForCleanUp(int batchSize) statementForCreateConstraint(String name, String label, Iterable<String> keys, org.neo4j.graphdb.schema.ConstraintType type, boolean ifNotExists) statementForIndexRelationship(String indexType, String type, Iterable<String> keys, boolean ifNotExists, String idxName) statementForNode(org.neo4j.graphdb.Node node, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, Set<String> indexNames) statementForNodeFullTextIndex(String name, Iterable<org.neo4j.graphdb.Label> labels, Iterable<String> keys) statementForNodeIndex(String indexType, String label, Iterable<String> keys, boolean ifNotExists, String idxName) voidstatementForNodes(Iterable<org.neo4j.graphdb.Node> node, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) statementForRelationship(org.neo4j.graphdb.Relationship relationship, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, ExportConfig exportConfig) statementForRelationshipFullTextIndex(String name, Iterable<org.neo4j.graphdb.RelationshipType> types, Iterable<String> keys) voidstatementForRelationships(Iterable<org.neo4j.graphdb.Relationship> relationship, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) voidwriteProperties(PrintWriter out, Map<String, Object> props) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface apoc.export.cypher.formatter.CypherFormatter
statementForCleanUp, statementForCreateConstraint, statementForDropConstraint, statementForIndexRelationship, statementForNodeFullTextIndex, statementForNodeIndex, statementForRelationshipFullTextIndex
-
Field Details
-
PROPERTY_QUOTING_FORMAT
- See Also:
-
-
Constructor Details
-
UpdateAllCypherFormatter
public UpdateAllCypherFormatter()
-
-
Method Details
-
statementForNode
public String statementForNode(org.neo4j.graphdb.Node node, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, Set<String> indexNames) - Specified by:
statementForNodein interfaceCypherFormatter
-
statementForRelationship
public String statementForRelationship(org.neo4j.graphdb.Relationship relationship, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, ExportConfig exportConfig) - Specified by:
statementForRelationshipin interfaceCypherFormatter
-
statementForNodes
public void statementForNodes(Iterable<org.neo4j.graphdb.Node> node, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) - Specified by:
statementForNodesin interfaceCypherFormatter
-
statementForRelationships
public void statementForRelationships(Iterable<org.neo4j.graphdb.Relationship> relationship, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) - Specified by:
statementForRelationshipsin interfaceCypherFormatter
-
statementForCleanUp
- Specified by:
statementForCleanUpin interfaceCypherFormatter
-
statementForNodeIndex
public String statementForNodeIndex(String indexType, String label, Iterable<String> keys, boolean ifNotExists, String idxName) - Specified by:
statementForNodeIndexin interfaceCypherFormatter
-
statementForIndexRelationship
public String statementForIndexRelationship(String indexType, String type, Iterable<String> keys, boolean ifNotExists, String idxName) - Specified by:
statementForIndexRelationshipin interfaceCypherFormatter
-
statementForNodeFullTextIndex
public String statementForNodeFullTextIndex(String name, Iterable<org.neo4j.graphdb.Label> labels, Iterable<String> keys) - Specified by:
statementForNodeFullTextIndexin interfaceCypherFormatter
-
statementForRelationshipFullTextIndex
public String statementForRelationshipFullTextIndex(String name, Iterable<org.neo4j.graphdb.RelationshipType> types, Iterable<String> keys) - Specified by:
statementForRelationshipFullTextIndexin interfaceCypherFormatter
-
statementForCreateConstraint
public String statementForCreateConstraint(String name, String label, Iterable<String> keys, org.neo4j.graphdb.schema.ConstraintType type, boolean ifNotExists) - Specified by:
statementForCreateConstraintin interfaceCypherFormatter
-
statementForDropConstraint
- Specified by:
statementForDropConstraintin interfaceCypherFormatter
-
mergeStatementForNode
-
mergeStatementForRelationship
public String mergeStatementForRelationship(CypherFormat cypherFormat, org.neo4j.graphdb.Relationship relationship, Map<String, Set<String>> uniqueConstraints, Set<String> indexedProperties, ExportConfig exportConfig) -
buildStatementForNodes
public void buildStatementForNodes(String nodeClause, String setClause, Iterable<org.neo4j.graphdb.Node> nodes, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) -
buildStatementForRelationships
public void buildStatementForRelationships(String relationshipClause, String setClause, Iterable<org.neo4j.graphdb.Relationship> relationship, Map<String, Set<String>> uniqueConstraints, ExportConfig exportConfig, PrintWriter out, Reporter reporter, org.neo4j.graphdb.GraphDatabaseService db) -
writeProperties
-