AsyncOrderedHierarchyQuery Class
Package: @esfx/async-iter-query
Represents an ordered sequence of hierarchically organized values.
Declaration
export declare class AsyncOrderedHierarchyQuery<TNode, T extends TNode = TNode> extends AsyncHierarchyQuery<TNode, T> implements AsyncOrderedHierarchyIterable<TNode, T>
Inherited Members
Constructors
constructor(source)
Constructs a new instance of the AsyncOrderedHierarchyQuery
class
Declaration
constructor(source: AsyncOrderedHierarchyIterable<TNode, T> | OrderedHierarchyIterable<TNode, T>);
Parameters
- source
- AsyncOrderedHierarchyIterable<TNode, T> | OrderedHierarchyIterable<TNode, T>
constructor(source, provider)
Constructs a new instance of the AsyncOrderedHierarchyQuery
class
Declaration
constructor(source: AsyncOrderedIterable<T> | OrderedIterable<T>, provider: HierarchyProvider<TNode>);
Parameters
- source
- AsyncOrderedIterable<T> | OrderedIterable<T>
- provider
- HierarchyProvider<TNode>
Methods
[AsyncOrderedIterable.thenByAsync](keySelector, comparison, descending)
Declaration
[AsyncOrderedIterable.thenByAsync]<K>(keySelector: (element: T) => K, comparison: Comparison<K> | Comparer<K>, descending: boolean): AsyncOrderedHierarchyIterable<TNode, T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
- comparison
- Comparison<K> | Comparer<K>
- descending
- boolean
Returns
thenBy(keySelector, comparison)
Creates a subsequent ordered subquery whose elements are sorted in ascending order by the provided key.
Declaration
thenBy<K>(keySelector: (element: T) => K, comparison?: Comparison<K> | Comparer<K>): AsyncOrderedHierarchyQuery<TNode, T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
A callback used to select the key for an element.
Returns
thenByDescending(keySelector, comparison)
Creates a subsequent ordered subquery whose elements are sorted in descending order by the provided key.
Declaration
thenByDescending<K>(keySelector: (element: T) => K, comparison?: Comparison<K> | Comparer<K>): AsyncOrderedHierarchyQuery<TNode, T>;
Type Parameters
- K
Parameters
- keySelector
- (element: T) => K
A callback used to select the key for an element.
Returns