Class S128CatalogueIndexer
- Namespace
- EncDotNet.S100.Collections.Indexing
- Assembly
- EncDotNet.S100.Collections.dll
Indexes an S128CatalogueSource: each product entry of an S-128 Catalogue of Nautical Products becomes a catalogue-only item (NoItemLocation) carrying the product's identification, currency and coverage.
public sealed class S128CatalogueIndexer : ICollectionSourceIndexer
- Inheritance
-
S128CatalogueIndexer
- Implements
- Inherited Members
Methods
CanIndex(CollectionSource)
Returns true when this indexer handles source.
public bool CanIndex(CollectionSource source)
Parameters
sourceCollectionSource
Returns
GetFingerprintAsync(CollectionSource, CancellationToken)
Cheaply computes a fingerprint of the source's current state. When it equals a previous index's Fingerprint, that index is still valid. Returns null when the state cannot be determined (for example the source is unavailable).
public ValueTask<string?> GetFingerprintAsync(CollectionSource source, CancellationToken cancellationToken)
Parameters
sourceCollectionSourcecancellationTokenCancellationToken
Returns
IndexAsync(CollectionSource, IProgress<IndexProgress>?, CancellationToken)
Indexes source.
public ValueTask<SourceIndex> IndexAsync(CollectionSource source, IProgress<IndexProgress>? progress, CancellationToken cancellationToken)
Parameters
sourceCollectionSourceprogressIProgress<IndexProgress>cancellationTokenCancellationToken
Returns
MapEntries(S128Dataset)
Maps every product entry of an already-parsed S-128 dataset onto catalogue-only items (for example a dataset the host has loaded).
public static IReadOnlyList<CollectionItem> MapEntries(S128Dataset dataset)
Parameters
datasetS128Dataset