Skip to content

Commit

Permalink
Fix the CountAttributeAggregator for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanvive committed Jun 28, 2019
1 parent f64efce commit d12e482
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import io.siddhi.annotation.Example;
import io.siddhi.annotation.Extension;
import io.siddhi.annotation.Parameter;
import io.siddhi.annotation.ParameterOverload;
import io.siddhi.annotation.ReturnAttribute;
import io.siddhi.annotation.util.DataType;
Expand All @@ -40,9 +41,18 @@
name = "count",
namespace = "",
description = "Returns the count of all the events.",
parameters = {},
parameters = {
@Parameter(name = "arg",
description = "This function accepts one parameter. " +
"It can belong to any one of the available types.",
type = {DataType.INT, DataType.LONG, DataType.DOUBLE, DataType.FLOAT,
DataType.STRING, DataType.BOOL, DataType.OBJECT},
dynamic = true,
optional = true)
},
parameterOverloads = {
@ParameterOverload()
@ParameterOverload(),
@ParameterOverload(parameterNames = {"arg"})
},
returnAttributes = @ReturnAttribute(
description = "Returns the event count as a long.",
Expand Down

0 comments on commit d12e482

Please sign in to comment.