DelayedSeries
Namespace: Deedle
This type exposes a single static method DelayedSeries.Create
that can be used for
constructing data series (of type Series<K, V>
) with lazily loaded data. You can
use this functionality to create series that represents e.g. an entire price history
in a database, but only loads data that are actually needed. For more information
see the lazy data loading tutorial.
Example
Assuming we have a function generate lo hi
that generates data in the specified
DateTime
range, we can create lazy series as follows:
1: 2: 3: 4: |
|
The arguments min
and max
specfify the complete range of the series. The
function passed to Create
is called with minimal and maximal required key
(lo
and hi
) and with two values that specify boundary behaviour.
Static members
Static member | Description |
DelayedSeries.Create(min, max, loader)
Signature: (min:'?686272 * max:'?686272 * loader:Func<'?686272,BoundaryBehavior,'?686272,BoundaryBehavior,Task<seq<KeyValuePair<'?686272,'?686273>>>>) -> Series<'?686272,'?686273>
Type parameters: '?686272, '?686273 Attributes: [<Obsolete("The DelayedSeries.Create method has been renamed to DelayedSeries.FromValueLoader")>] |
WARNING: This API is obsolete
The DelayedSeries.Create method has been renamed to DelayedSeries.FromValueLoader |
DelayedSeries.Create(min, max, loader)
Signature: (min:'?686269 * max:'?686269 * loader:('?686269 * BoundaryBehavior -> '?686269 * BoundaryBehavior -> Async<seq<KeyValuePair<'?686269,'?686270>>>)) -> Series<'?686269,'?686270>
Type parameters: '?686269, '?686270 Attributes: [<Obsolete("The DelayedSeries.Create method has been renamed to DelayedSeries.FromValueLoader")>] |
WARNING: This API is obsolete
The DelayedSeries.Create method has been renamed to DelayedSeries.FromValueLoader |
DelayedSeries.FromIndexVectorLoader(...)
Signature: (scheme:IAddressingScheme * vectorBuilder:IVectorBuilder * indexBuilder:IIndexBuilder * min:'K * max:'K * loader:('K * BoundaryBehavior -> 'K * BoundaryBehavior -> Async<IIndex<'K> * IVector<'V>>)) -> Series<'K,'V>
Type parameters: 'K, 'V |
|
DelayedSeries.FromIndexVectorLoader(...)
Signature: (scheme:IAddressingScheme * vectorBuilder:IVectorBuilder * indexBuilder:IIndexBuilder * min:'K * max:'K * loader:Func<'K,BoundaryBehavior,'K,BoundaryBehavior,Task<IIndex<'K> * IVector<'V>>>) -> Series<'K,'V>
Type parameters: 'K, 'V |
|
DelayedSeries.FromValueLoader(...)
Signature: (min:'K * max:'K * loader:('K * BoundaryBehavior -> 'K * BoundaryBehavior -> Async<seq<KeyValuePair<'K,'V>>>)) -> Series<'K,'V>
Type parameters: 'K, 'V |
An F#-friendly function that creates lazily loaded series. The method requires the overall range of the series (smallest and greatest key) and a function that loads the data. The function is called with two tuples that specify lower and upper boundary. It returns an asynchronous workflow that produces the data. Parameters
RemarksFor more information see the lazy data loading tutorial. |
DelayedSeries.FromValueLoader(...)
Signature: (min:'K * max:'K * loader:Func<'K,BoundaryBehavior,'K,BoundaryBehavior,Task<seq<KeyValuePair<'K,'V>>>>) -> Series<'K,'V>
Type parameters: 'K, 'V |
A C#-friendly function that creates lazily loaded series. The method requires
the overall range of the series (smallest and greatest key) and a function that
loads the data. In this overload, the function is a Parameters
RemarksFor more information see the lazy data loading tutorial.
The operation calls |