![]() | This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages) (Learn how and when to remove this message)
|
Incomputer science, astream is asequence of potentially unlimiteddata elements made available over time. A stream can be thought of as items on aconveyor belt being processed one at a time rather than in large batches. Streams are processed differently frombatch data.
Normal functions cannot operate on streams as a whole because they have potentially unlimited data. Formally, streams arecodata (potentially unlimited), not data (which is finite).
Functions that operate on a stream producing another stream are known asfilters and can be connected inpipelines in a manner analogous tofunction composition. Filters may operate on one item of a stream at a time or may base an item of output on multiple items of input such as amoving average.
The term "stream" is used in a number of similar ways:
![]() | This sectionneeds expansion. You can help byadding to it.(February 2014) |
Streams can be used as the underlying data type forchannels ininterprocess communication.
The term "stream" is also applied tofile systemforks, where multiple sets of data are associated with a single filename. Most often, there is one main stream that makes up the normal file data, while additional streams containmetadata. Here "stream" is used to indicate "variable size data", as opposed to fixed size metadata such asextended attributes, but differs from "stream" as used otherwise, meaning "data available over time, potentially infinite".