Class GraphCache


  • public class GraphCache
    extends Object
    A class to store a local cache in the client, for a specific graph. Holds the labels, property names and relationship types
    • Constructor Detail

      • GraphCache

        public GraphCache​(String graphId)
        Parameters:
        graphId - - graph Id
    • Method Detail

      • getLabel

        public String getLabel​(int index,
                               RedisGraph redisGraph)
        Parameters:
        index - - index of label
        Returns:
        requested label
      • getRelationshipType

        public String getRelationshipType​(int index,
                                          RedisGraph redisGraph)
        Parameters:
        index - index of the relationship type
        Returns:
        requested relationship type
      • getPropertyName

        public String getPropertyName​(int index,
                                      RedisGraph redisGraph)
        Parameters:
        index - index of property name
        Returns:
        requested property