Class RedisGraphCaches
- java.lang.Object
-
- com.redislabs.redisgraph.impl.graph_cache.RedisGraphCaches
-
public class RedisGraphCaches extends Object
-
-
Constructor Summary
Constructors Constructor Description RedisGraphCaches()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphCache
getGraphCache(String graphId)
String
getLabel(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the label mapped to the label idString
getPropertyName(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the property mapped to the label idString
getRelationshipType(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the relationship mapped to the label idvoid
removeGraphCache(String graphId)
Removes a graph meta data cache
-
-
-
Method Detail
-
getGraphCache
public GraphCache getGraphCache(String graphId)
-
getLabel
public String getLabel(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the label mapped to the label id- Parameters:
graphId
- graph to perform the queryindex
- label indexredisGraph
- RedisGraphAPI implementation- Returns:
- label name
-
getRelationshipType
public String getRelationshipType(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the relationship mapped to the label id- Parameters:
graphId
- graph to perform the queryindex
- relationship indexredisGraph
- RedisGraphAPI implementation- Returns:
- relationship name
-
getPropertyName
public String getPropertyName(String graphId, int index, RedisGraph redisGraph)
Returns a String which represents the name of the property mapped to the label id- Parameters:
graphId
- graph to perform the queryindex
- property indexredisGraph
- RedisGraphAPI implementation- Returns:
- property name
-
removeGraphCache
public void removeGraphCache(String graphId)
Removes a graph meta data cache- Parameters:
graphId
-
-
-