Parameter Overload Annotation used in TimeBatchWindow Extension to replace init logic
@@ -20,6 +20,7 @@ package io.siddhi.core.query.processor.stream.window;
import io.siddhi.annotation.Example;
import io.siddhi.annotation.Extension;
import io.siddhi.annotation.Parameter;
+import io.siddhi.annotation.ParameterOverload;
import io.siddhi.annotation.util.DataType;
import io.siddhi.core.config.SiddhiQueryContext;
import io.siddhi.core.event.ComplexEvent;
@@ -77,6 +78,11 @@ import java.util.Map;
optional = true,
defaultValue = "false")
},
+ parameterOverloads = {
+ @ParameterOverload(parameterNames = {"window.time"}),
+ @ParameterOverload(parameterNames = {"window.time","start.time"}),
+ @ParameterOverload(parameterNames = {"window.time","start.time","stream.current.event"})
+ },
examples = {
@Example(
syntax = "define stream InputEventStream (symbol string, price float, volume int);\n\n" +
