Click or drag to resize
DelayedSeries Class
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](../lazysource.html). ## Example Assuming we have a function `generate lo hi` that generates data in the specified `DateTime` range, we can create lazy series as follows: let ls = DelayedSeries.Create(min, max, fun (lo, lob) (hi, hib) -> async { printfn "Query: %A - %A" (lo, lob) (hi, hib) return generate lo hi }) 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. [category:Specialized frame and series types]
Inheritance Hierarchy
SystemObject
  DeedleDelayedSeries

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
[SerializableAttribute]
public class DelayedSeries

The DelayedSeries type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreatea, b(a, a, FSharpFuncTuplea, BoundaryBehavior, FSharpFuncTuplea, BoundaryBehavior, FSharpAsyncIEnumerableKeyValuePaira, b) Obsolete.
Public methodStatic memberCreatea, b(a, a, Funca, BoundaryBehavior, a, BoundaryBehavior, TaskIEnumerableKeyValuePaira, b) Obsolete.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromIndexVectorLoaderK, V(AddressingIAddressingScheme, IVectorBuilder, IIndexBuilder, K, K, FSharpFuncTupleK, BoundaryBehavior, FSharpFuncTupleK, BoundaryBehavior, FSharpAsyncTupleIIndexK, IVectorV)
Public methodStatic memberFromIndexVectorLoaderK, V(AddressingIAddressingScheme, IVectorBuilder, IIndexBuilder, K, K, FuncK, BoundaryBehavior, K, BoundaryBehavior, TaskTupleIIndexK, IVectorV)
Public methodStatic memberFromValueLoaderK, V(K, K, FSharpFuncTupleK, BoundaryBehavior, FSharpFuncTupleK, BoundaryBehavior, FSharpAsyncIEnumerableKeyValuePairK, 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 - `min` - The smallest key that should be present in the created series. - `min` - The greatests key that should be present in the created series. - `loader` - A function which returns an asynchronous workflow that loads the data in a specified range. The function is called with two tuples consisting of key and `BoundaryBehavior` values. The keys specify lower and upper boundary and `BoundaryBehavior` values can be either `Inclusive` or `Exclusive`. ## Remarks For more information see the [lazy data loading tutorial](../lazysource.html).
Public methodStatic memberFromValueLoaderK, V(K, K, FuncK, BoundaryBehavior, K, BoundaryBehavior, TaskIEnumerableKeyValuePairK, 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 `Func` delegate taking information about the requested range and returning `Task<T>` that produces the data. ## Parameters - `min` - The smallest key that should be present in the created series. - `min` - The greatests key that should be present in the created series. - `loader` - A delegate which returns a task that loads the data in a specified range. The delegate is called with four arguments specifying the minimal and maximal key and two `BoundaryBehavior` values specifying whether the low and high ranges are inclusive or exclusive. ## Remarks For more information see the [lazy data loading tutorial](../lazysource.html). The operation calls `loader` (and so creates the tasks) on the thread that is requesting the result.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also