Class PregelContext<CONFIG extends PregelConfig>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CONFIG config  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PregelContext​(CONFIG config, org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      CONFIG config()
      Allows access to the user-defined Pregel configuration.
      abstract boolean isMultiGraph()
      Indicates whether the input graph is a multi-graph.
      void logDebug​(java.lang.String message)
      Log a debug message to the Neo4j log.
      void logMessage​(java.lang.String message)
      Log a info message to the Neo4j log
      void logWarning​(java.lang.String message)
      Log a warning message to the Neo4j log.
      abstract long nodeCount()
      Number of nodes in the input graph.
      abstract long relationshipCount()
      Number of relationships in the input graph.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PregelContext

        protected PregelContext​(CONFIG config,
                                org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)
    • Method Detail

      • config

        public CONFIG config()
        Allows access to the user-defined Pregel configuration.
      • logDebug

        public void logDebug​(java.lang.String message)
        Log a debug message to the Neo4j log.
      • logWarning

        public void logWarning​(java.lang.String message)
        Log a warning message to the Neo4j log.
      • logMessage

        public void logMessage​(java.lang.String message)
        Log a info message to the Neo4j log
      • isMultiGraph

        public abstract boolean isMultiGraph()
        Indicates whether the input graph is a multi-graph.
      • nodeCount

        public abstract long nodeCount()
        Number of nodes in the input graph.
      • relationshipCount

        public abstract long relationshipCount()
        Number of relationships in the input graph.