IIndex
An interface that represents index mapping keys of some generic type T
to locations
of address Address
. The IIndex<K>
contains minimal set of operations that have to
be supported by an index. This type should be only used directly when
extending the DataFrame library and adding a new way of storing or loading data.
Values of this type are constructed using the associated IIndexBuilder
type.
Instance members
Instance member | Description |
iIndex.Builder
Signature:IIndexBuilder
Modifiers: abstract |
Returns an index builder that canbe used for constructing new indices of the same kind as the current index (e.g. a lazy index returns a lazy index builder) |
iIndex.Comparer
Signature:Comparer<'K>
Modifiers: abstract |
Returns a comparer associated with the values used by the current index. |
iIndex.IsEmpty
Signature:bool
Modifiers: abstract |
Returns whether the specified index is empty. This is equivalent to
testing if |
iIndex.IsOrdered
Signature:bool
Modifiers: abstract |
Returns |
iIndex.KeyAt(arg1)
Signature:Address -> 'K
Modifiers: abstract |
Performs reverse lookup - and returns key for a specified address |
iIndex.KeyCount
Signature:int64
Modifiers: abstract |
Returns the number of keys in the index |
iIndex.KeyRange
Signature:'K * 'K
Modifiers: abstract |
Returns the minimal and maximal key associated with the index. (the operation may fail for unordered indices) |
iIndex.Keys
Signature:seq<'K>
Modifiers: abstract |
Returns a sequence of all keys in the index. |
iIndex.Lookup(key, lookup, condition)
Signature:(key:'K * lookup:Lookup * condition:(Address -> bool)) -> OptionalValue<'K * Address>
Modifiers: abstract |
Find the address associated with the specified key, or with the nearest
key as specifeid by the |
iIndex.Mappings
Signature:seq<'K * Address>
Modifiers: abstract |
Returns all key-address mappings in the index |
iIndex.Range
Signature:Address * Address
Modifiers: abstract |
Returns the minimal and maximal address used in the index. |