From 274e3517ea6507d9c480d89d97e0399214b503df Mon Sep 17 00:00:00 2001 From: Veselin Nikolov Date: Fri, 17 Nov 2023 08:03:51 +0000 Subject: [PATCH] Register deprecated CELF procedure counts Co-authored-by: Ioannis Panagiotas --- .../neo4j/gds/influenceMaximization/CELFMutateProc.java | 8 ++++++++ .../neo4j/gds/influenceMaximization/CELFStatsProc.java | 8 ++++++++ .../neo4j/gds/influenceMaximization/CELFStreamProc.java | 8 ++++++++ .../neo4j/gds/influenceMaximization/CELFWriteProc.java | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFMutateProc.java b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFMutateProc.java index c575fd09c8..bd6e91dc04 100644 --- a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFMutateProc.java +++ b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFMutateProc.java @@ -75,6 +75,10 @@ public Stream betaMutate( @Name(value = "graphName") String graphName, @Name(value = "configuration", defaultValue = "{}") Map configuration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.mutate"); + executionContext() .log() .warn( @@ -94,6 +98,10 @@ public Stream betaEstimate( @Name(value = "graphNameOrConfiguration") Object graphNameOrConfiguration, @Name(value = "algoConfiguration") Map algoConfiguration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.mutate.estimate"); + executionContext() .log() .warn( diff --git a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStatsProc.java b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStatsProc.java index cb3535545c..afced824e8 100644 --- a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStatsProc.java +++ b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStatsProc.java @@ -74,6 +74,10 @@ public Stream betaStats( @Name(value = "graphName") String graphName, @Name(value = "configuration", defaultValue = "{}") Map configuration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.stats"); + executionContext() .log() .warn( @@ -93,6 +97,10 @@ public Stream betaEstimate( @Name(value = "graphNameOrConfiguration") Object graphNameOrConfiguration, @Name(value = "algoConfiguration") Map algoConfiguration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.stats.estimate"); + executionContext() .log() .warn( diff --git a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStreamProc.java b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStreamProc.java index 41362899eb..0fee460f72 100644 --- a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStreamProc.java +++ b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFStreamProc.java @@ -76,6 +76,10 @@ public Stream betaStream( @Name(value = "graphName") String graphName, @Name(value = "configuration", defaultValue = "{}") Map configuration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.stream"); + executionContext() .log() .warn( @@ -95,6 +99,10 @@ public Stream betaEstimate( @Name(value = "graphName") Object graphName, @Name(value = "configuration", defaultValue = "{}") Map configuration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.stream.estimate"); + executionContext() .log() .warn( diff --git a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFWriteProc.java b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFWriteProc.java index 9e20e49639..dc326c6a4b 100644 --- a/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFWriteProc.java +++ b/proc/centrality/src/main/java/org/neo4j/gds/influenceMaximization/CELFWriteProc.java @@ -82,6 +82,10 @@ public Stream betaWrite( @Name(value = "graphName") String graphName, @Name(value = "configuration", defaultValue = "{}") Map configuration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.write"); + executionContext() .log() .warn( @@ -101,6 +105,10 @@ public Stream betaEstimate( @Name(value = "graphNameOrConfiguration") Object graphNameOrConfiguration, @Name(value = "algoConfiguration") Map algoConfiguration ) { + executionContext() + .metricsFacade() + .deprecatedProcedures().called("gds.beta.influenceMaximization.celf.write.estimate"); + executionContext() .log() .warn(