Header menu logo Deedle

IRangeKeyOperations<'TKey> Type

 A set of operations on keys that you need to implement in order to use the
 `Ranges<'TKey>` type. The `'TKey` type is typically the key of a BigDeedle
 series. It can represent different things, such as:

  - `int64` - if you have ordinally indexed series
  - `Date` (of some sort) - if you have daily time series
  - `DateTimeOffset` - if you have time series with DTO keys

 The operations need to implement the *right* thing based on the logic of the
 keys. So for example if you have one data point every hour, `IncrementBy` should
 add the appropriate number of hours. Or if you have keys as business days, the
 `IncrementBy` operation should add a number of business days (that is, the
 operations may be simple numerical addition, but may contain more logic).

Instance members

Instance member Description

this.Compare

Full Usage: this.Compare

Parameters:
    arg0 : 'TKey
    arg1 : 'TKey

Returns: int
Modifiers: abstract

Compare two keys. Return +1 if first is larger, -1 if second is larger, 0 otherwise

arg0 : 'TKey
arg1 : 'TKey
Returns: int

this.Distance

Full Usage: this.Distance

Parameters:
    arg0 : 'TKey
    arg1 : 'TKey

Returns: int64
Modifiers: abstract

Return distance between two keys - return 0 if the keys are the same (the second key is always larger than the first)

arg0 : 'TKey
arg1 : 'TKey
Returns: int64

this.IncrementBy

Full Usage: this.IncrementBy

Parameters:
    arg0 : 'TKey
    arg1 : int64

Returns: 'TKey
Modifiers: abstract

Get the n-th next key after the specified key (n is always non-negative)

arg0 : 'TKey
arg1 : int64
Returns: 'TKey

this.Range

Full Usage: this.Range

Parameters:
    arg0 : 'TKey
    arg1 : 'TKey

Returns: 'TKey seq
Modifiers: abstract

Generate keys within the specific range (inclusively). Here, the second key _can_ be smaller (in which case the range should be from larger to smaller)

arg0 : 'TKey
arg1 : 'TKey
Returns: 'TKey seq

this.ValidateKey

Full Usage: this.ValidateKey

Parameters:
Returns: OptionalValue<'TKey>
Modifiers: abstract

Find the first valid key around the specified `'TKey` value. This is used when not all `'TKey` values can appear as keys of the series. If lookup is `Exact`, it should just check validity; for other lookups, this should either find first smaller or first larger valid key (but not skip any keys). This is only called with `lookup = Lookup.Exact`, unless you are also using `Ranges.lookup` function inside `IVirtualVectorSource<'T>.LookupValue`.

arg0 : 'TKey
arg1 : Lookup
Returns: OptionalValue<'TKey>

Type something to start searching.