Timestream.collect
- Timestream.collect(max, min=0, window=None)
-
Return a Timestream collecting up to the last
max
values in thewindow
.Collects the values for each key separately.
- Parameters:
-
-
The maximum number of values to collect.
If
None
all values are collected. min (Optional[int], default:
0
)The minimum number of values to collect before producing a value.
Defaults to 0.
window (Optional[Window], default:
None
)The window to use for the aggregation. If not specified,
the entire Timestream is used.
-
- Returns:
-
A Timestream containing the list of collected elements at each point.