Fixing time batch window docs
@@ -61,21 +61,24 @@ import java.util.Map;
type = {DataType.INT, DataType.LONG, DataType.TIME}),
@Parameter(name = "start.time",
description = "This specifies an offset in milliseconds in order to start the " +
- "window at a time different to the standard time.",
- type = {DataType.INT})
+ "window at a time different to the standard time. When this is not provided the " +
+ "window calculation will begin from first event arrival.",
+ type = {DataType.INT},
+ optional = true,
+ defaultValue = " ")
},
examples = {
@Example(
syntax = "define window cseEventWindow (symbol string, price float, volume int) " +
- "timeBatch(20) output all events;\n" +
+ "timeBatch(20 sec) output all events;\n\n" +
"@info(name = 'query0')\n" +
"from cseEventStream\n" +
- "insert into cseEventWindow;\n" +
+ "insert into cseEventWindow;\n\n" +
"@info(name = 'query1')\n" +
"from cseEventWindow\n" +
"select symbol, sum(price) as price\n" +
"insert all events into outputStream ;",
- description = "This will processing events arrived every 20 milliseconds" +
+ description = "This will processing events arrived every 20 seconds" +
" as a batch and out put all events."
)
}
