Modifier and Type | Constant Field | Value |
---|---|---|
public static final String |
createEdgeStatementTemplate |
"MATCH (s:<s_type> {id: \'<s_id>\'}),(d:<d_type> {id: \'<d_id>\'}) CREATE UNIQUE (s)-[r:<r_type> <r_props>]->(d) RETURN r" |
public static final String |
createVertexStatementTemplate |
"MATCH (x {id: \'<id>\'}) CREATE UNIQUE (v:<type> { props }) ON CREATE SET v <labels> RETURN v" |
public static final String |
getVertexLongIdStatementTemplate |
"MATCH (v) WHERE ID(v) = <id> RETURN v" |
public static final String |
getVertexStringIdStatementTemplate |
"MATCH (v {id: \'<id>\'} ) RETURN v" |
public static final String |
mergeVertexStatementTemplate |
"MERGE (v:<type> {id: \'<id>\'}) ON CREATE SET v <labels>, v = { props }, v.`@timestamp` = timestamp() ON MATCH SET v <labels>, v = { props }, v.`@timestamp` = timestamp() RETURN v" |
public static final String |
paramsKey |
"parameters" |
public static final String |
propsKey |
"props" |
public static final String |
statementKey |
"statement" |
Modifier and Type | Constant Field | Value |
---|---|---|
public static final String |
createEdgeStatementTemplate |
"MATCH (s:<s_type> {id: \'<s_id>\'}),(d:<d_type> {id: \'<d_id>\'}) CREATE UNIQUE (s)-[r:<r_type> <r_props>]->(d) RETURN r" |
public static final String |
createVertexStatementTemplate |
"MATCH (x {id: \'<id>\'}) CREATE UNIQUE (v:<type> { props }) ON CREATE SET v <labels> RETURN v" |
public static final String |
getVertexLongIdStatementTemplate |
"MATCH (v) WHERE ID(v) = <id> RETURN v" |
public static final String |
getVertexStringIdStatementTemplate |
"MATCH (v {id: \'<id>\'} ) RETURN v" |
public static final String |
mergeVertexStatementTemplate |
"MERGE (v:<type> {id: \'<id>\'}) ON CREATE SET v <labels>, v = { props }, v.`@timestamp` = timestamp() ON MATCH SET v <labels>, v = { props }, v.`@timestamp` = timestamp() RETURN v" |
Modifier and Type | Constant Field | Value |
---|---|---|
public static final String |
paramsKey |
"parameters" |
public static final String |
propsKey |
"props" |
public static final String |
statementKey |
"statement" |
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.