public class CypherQueryGraphHelper extends Object implements QueryGraphHelper, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
createEdgeStatementTemplate |
static String |
createVertexStatementTemplate |
static String |
getVertexLongIdStatementTemplate |
static String |
getVertexStringIdStatementTemplate |
static String |
getVerticesLabelIdStatementTemplate |
static String |
mergeVertexStatementTemplate |
Constructor and Description |
---|
CypherQueryGraphHelper() |
Modifier and Type | Method and Description |
---|---|
org.javatuples.Pair<String,Map<String,Object>> |
createActorObjectEdge(Activity activity)
createActorObjectEdge.
|
org.javatuples.Pair<String,Map<String,Object>> |
createActorTargetEdge(Activity activity)
createActorTargetEdge.
|
org.javatuples.Pair<String,Map<String,Object>> |
createVertexRequest(ActivityObject activityObject)
createVertexRequest.
|
static List<String> |
getLabels(ActivityObject activityObject)
getLabels.
|
static String |
getPropertyCreater(Map<String,Object> map)
getPropertyCreater.
|
static String |
getPropertyParamSetter(Map<String,Object> map,
String symbol)
getPropertyParamSetter.
|
static String |
getPropertyValueSetter(Map<String,Object> map,
String symbol)
getPropertyValueSetter.
|
org.javatuples.Pair<String,Map<String,Object>> |
getVertexRequest(Long vertexId)
getVertexRequest.
|
org.javatuples.Pair<String,Map<String,Object>> |
getVertexRequest(String streamsId) |
org.javatuples.Pair<String,Map<String,Object>> |
getVerticesRequest(String labelId)
getVerticesRequest gets all vertices with a label.
|
org.javatuples.Pair<String,Map<String,Object>> |
mergeVertexRequest(ActivityObject activityObject)
mergeVertexRequest.
|
public static final String getVertexLongIdStatementTemplate
public static final String getVertexStringIdStatementTemplate
public static final String getVerticesLabelIdStatementTemplate
public static final String createVertexStatementTemplate
public static final String mergeVertexStatementTemplate
public static final String createEdgeStatementTemplate
public org.javatuples.Pair<String,Map<String,Object>> getVertexRequest(String streamsId)
getVertexRequest
in interface QueryGraphHelper
public org.javatuples.Pair<String,Map<String,Object>> getVertexRequest(Long vertexId)
getVertexRequest
in interface QueryGraphHelper
vertexId
- numericIdpublic org.javatuples.Pair<String,Map<String,Object>> createVertexRequest(ActivityObject activityObject)
createVertexRequest
in interface QueryGraphHelper
activityObject
- activityObjectpublic org.javatuples.Pair<String,Map<String,Object>> getVerticesRequest(String labelId)
labelId
- labelIdpublic org.javatuples.Pair<String,Map<String,Object>> mergeVertexRequest(ActivityObject activityObject)
mergeVertexRequest
in interface QueryGraphHelper
activityObject
- activityObjectpublic org.javatuples.Pair<String,Map<String,Object>> createActorObjectEdge(Activity activity)
createActorObjectEdge
in interface QueryGraphHelper
activity
- activitypublic org.javatuples.Pair<String,Map<String,Object>> createActorTargetEdge(Activity activity)
createActorTargetEdge
in interface QueryGraphHelper
activity
- activitypublic static String getPropertyValueSetter(Map<String,Object> map, String symbol)
map
- paramMappublic static String getPropertyParamSetter(Map<String,Object> map, String symbol)
map
- paramMappublic static String getPropertyCreater(Map<String,Object> map)
map
- paramMappublic static List<String> getLabels(ActivityObject activityObject)
activityObject
- activityObjectCopyright © 2018 The Apache Software Foundation. All rights reserved.