Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Stream Clause

The stream clause is used for continuous queries only. It is used within a `from` clause.

See Stream Policy for details on how a window is defined.

## Use of Accept:New and Accept:All

Events and concepts (entities) can be deleted by rules. By default (`accept:all`), if a continuous query has already seen an entity before, then it will expect a delete or modify notification from the cache cluster. Therefore the query must keep track of such things.

However, if you specify the `accept:new` clause, then the continuous query does not have to track such things, and the memory footprint of the query is reduced.

The `accept:``new` clause is required for event stream processing (ESP) queries. See Event Stream Processing (ESP) Queries.

## Use of Emit: New and Emit: Dead

The `emit` keyword determines whether the query is evaluated when an entity enters the window (`emit : new`) or when an entity leaves the window (`emit : dead`).

The default value is `emit:new`.

Note: Do not use emit clauses with aggregations.

For examples showing usage, see the following:

- Using Emit New to Create a Counter
- Delaying Output with an Emit Dead Clause

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.