1. A method for managing a data stream, comprising: generating an iterator-model subplan from an iterator-model plan; assigning a continuous-query operator to the iterator-model subplan; and assigning an adapter to the iterator-model subplan.