IDocumentToLookupExtensions Class
Extensions for creating lookups from document sequences.
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["IDocumentToLookupExtensions"] class Type type-node

Syntax

public static class IDocumentToLookupExtensions

Methods

Name Return Value Summary
ToLookup<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents and the values of a specified metadata key using the value of the specified element metadata for the elements of the lookup and compares the keys by using a specified comparer. If a document does not contain the specified key or element metadata keys, it is not included in the result set.
static
ToLookup<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents and the values of a specified metadata key using the value of the specified element metadata for the elements of the lookup. If a document does not contain the specified key or element metadata keys, it is not included in the result set.
static
ToLookup<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents and the values of a specified metadata key and compares the keys by using a specified comparer. If a document does not contain the specified metadata key, it is not included in the result set.
static
ToLookup<TKey>(IEnumerable<IDocument>, string) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents using the values of a specified metadata key. If a document does not contain the specified metadata key, it is not included in the result set.
static
ToLookupMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys. The keys are compared by using a comparer and each group's elements are obtained by using a specified metadata key.
static
ToLookupMany<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and gets the elements for each group by using a specified metadata key.
static
ToLookupMany<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and compares the keys by using a specified comparer.
static
ToLookupMany<TKey>(IEnumerable<IDocument>, string) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys.
static
ToLookupManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys. The keys are compared by using a comparer and each group's elements are obtained by using a specified metadata key.
static
ToLookupManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and gets the elements for each group by using a specified metadata key.
static