Class RedisGraphCaches


  • public class RedisGraphCaches
    extends Object
    • Constructor Detail

      • RedisGraphCaches

        public RedisGraphCaches()
    • Method Detail

      • 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 query
        index - label index
        redisGraph - 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 query
        index - relationship index
        redisGraph - 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 query
        index - property index
        redisGraph - RedisGraphAPI implementation
        Returns:
        property name
      • removeGraphCache

        public void removeGraphCache​(String graphId)
        Removes a graph meta data cache
        Parameters:
        graphId -