This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from SalesforceLabs/guspatch
Performance improvements and more customization
- Loading branch information
Showing
31 changed files
with
914 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
150 changes: 93 additions & 57 deletions
150
force-app/main/algorithms/classes/ClusterKNNPredictor.cls
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
force-app/main/algorithms/classes/ClusterRecordPreprocessor.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Allows to implement custom Apex record preprocessors | ||
* | ||
* @author: Iskander Mukhamedgaliyev | ||
*/ | ||
global interface ClusterRecordPreprocessor { | ||
void processRecords(List<SObject> records, ClusterRecordPreprocessorParameters parameters); | ||
} |
5 changes: 5 additions & 0 deletions
5
force-app/main/algorithms/classes/ClusterRecordPreprocessor.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>50.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
48 changes: 48 additions & 0 deletions
48
force-app/main/algorithms/classes/ClusterRecordPreprocessorParameters.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Parameters for ClusterRecordPreprocessor | ||
* | ||
* @author: Iskander Mukhamedgaliyev | ||
*/ | ||
global inherited sharing class ClusterRecordPreprocessorParameters { | ||
private Id modelId; | ||
private String modelName; | ||
private Id jobId; | ||
private Boolean isLearning; | ||
|
||
public ClusterRecordPreprocessorParameters() { | ||
|
||
} | ||
|
||
global Id getModelId() { | ||
return this.modelId; | ||
} | ||
|
||
public void setModelId(Id modelId) { | ||
this.modelId = modelId; | ||
} | ||
|
||
global String getModelName() { | ||
return this.modelName; | ||
} | ||
|
||
public void setModelName(String modelName) { | ||
this.modelName = modelName; | ||
} | ||
|
||
global Id getJobId() { | ||
return this.jobId; | ||
} | ||
|
||
public void setJobId(Id jobId) { | ||
this.jobId = jobId; | ||
} | ||
|
||
global Boolean getIsLearning() { | ||
return this.isLearning; | ||
} | ||
|
||
public void setIsLearning(Boolean isLearning) { | ||
this.isLearning = isLearning; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
force-app/main/algorithms/classes/ClusterRecordPreprocessorParameters.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>50.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.