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 GraphCachegetGraphCache(String graphId)StringgetLabel(String graphId, int index, RedisGraph redisGraph)Returns a String which represents the name of the label mapped to the label idStringgetPropertyName(String graphId, int index, RedisGraph redisGraph)Returns a String which represents the name of the property mapped to the label idStringgetRelationshipType(String graphId, int index, RedisGraph redisGraph)Returns a String which represents the name of the relationship mapped to the label idvoidremoveGraphCache(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-
-
-