Class PregelContext<CONFIG extends PregelConfig>
- java.lang.Object
-
- org.neo4j.gds.beta.pregel.context.PregelContext<CONFIG>
-
- Direct Known Subclasses:
MasterComputeContext,NodeCentricContext
public abstract class PregelContext<CONFIG extends PregelConfig> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPregelContext(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 CONFIGconfig()Allows access to the user-defined Pregel configuration.abstract booleanisMultiGraph()Indicates whether the input graph is a multi-graph.voidlogDebug(java.lang.String message)Log a debug message to the Neo4j log.voidlogMessage(java.lang.String message)Log a info message to the Neo4j logvoidlogWarning(java.lang.String message)Log a warning message to the Neo4j log.abstract longnodeCount()Number of nodes in the input graph.abstract longrelationshipCount()Number of relationships in the input graph.
-
-
-
Field Detail
-
config
protected final CONFIG extends PregelConfig config
-
-
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.
-
-