Skip Headers

# Stream and Cursor Query Results

Previous

Next

A stream is a view of a collection, which can be a file, a device, or a `Vector`. A stream provides access to the collection, one element at a time in sequence. This makes it possible to implement stream classes in which the stream does not contain all the objects of a collection at the same time.

Large result sets can be resource-intensive to collect and process. To improve performance and give the client more control over the returned results, configure TopLink queries to use a cursor or stream.

Cursors & streams are supported by all subclasses of `DataReadQuery` and `ReadAllQuery`.

For more information, see "Handling Cursor and Stream Query Results".