Class VirtualNodeCache<TNodeID, TKey>
A Cache that maps from Virtual IDs to Materialised Values.
Inherited Members
Namespace: VDS.RDF.Storage.Virtualisation
Assembly: dotNetRdf.dll
Syntax
public class VirtualNodeCache<TNodeID, TKey>
Type Parameters
| Name | Description |
|---|---|
| TNodeID | |
| TKey |
Constructors
| Edit this page View SourceVirtualNodeCache(Func<TNodeID, TKey>)
Creates a new Virtual ID cache.
Declaration
public VirtualNodeCache(Func<TNodeID, TKey> keyGenerator)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<TNodeID, TKey> | keyGenerator | Function that maps Node IDs to dictionary keys. |
Properties
| Edit this page View Sourcethis[TNodeID]
Gets/Sets the materialised value for a particular Virtual ID.
Declaration
public INode this[TNodeID id] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| TNodeID | id | Virtual ID. |
Property Value
| Type | Description |
|---|---|
| INode |