Skip to content

Commit 821842e

Browse files
author
Cyril de Catheu
authored
[detectionpipeline] simplify Operator interface (#1778)
1 parent 88cbac7 commit 821842e

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

thirdeye-detectionpipeline/src/main/java/ai/startree/thirdeye/detectionpipeline/Operator.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,12 @@ void execute()
2626

2727
String getOperatorName();
2828

29-
void setProperty(String key, Object value);
30-
31-
3229
/**
3330
* Set keyed input
34-
* @param key
35-
* @param input
3631
*/
32+
@SuppressWarnings("unused") // used in enterprise TE
3733
void setInput(String key, OperatorResult input);
3834

39-
/**
40-
* Get keyed output
41-
* @param key
42-
*/
43-
OperatorResult getOutput(String key);
44-
4535
/**
4636
* Get all keyed outputs
4737
*/

thirdeye-detectionpipeline/src/main/java/ai/startree/thirdeye/detectionpipeline/operator/DetectionPipelineOperator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ protected void setOutput(String key, final OperatorResult output) {
9494
resultMap.put(key, output);
9595
}
9696

97-
@Override
98-
public void setProperty(final String key, final Object value) {
99-
planNode.getParams().putValue(key, value);
100-
}
101-
102-
@Override
103-
public OperatorResult getOutput(final String key) {
104-
return resultMap.get(key);
105-
}
106-
10797
@Override
10898
public Map<String, OperatorResult> getOutputs() {
10999
return resultMap;

0 commit comments

Comments
 (0)