Class GroupedWindowedQueryable<TKey, TProps>
Queryable for applying window functions to grouped data.
Wraps grouped query and adds window function support.
public class GroupedWindowedQueryable<TKey, TProps> : IGroupedWindowedQueryable<TKey, TProps>
Inheritance
Implements
Properties
IsBaseFieldGrouping
True when the key comes from GroupByRedb: its members are fields of the object, not of Props.
public bool IsBaseFieldGrouping { get; init; }
Methods
SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>, CancellationToken)
Execute query and materialize results with window functions applied to groups.
public Task<List<TResult>> SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector, CancellationToken cancellationToken = default)
SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>)
Execute query and materialize results with window functions applied to groups.
public Task<List<TResult>> SelectAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector)
ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>, CancellationToken)
Get SQL preview for debugging.
public Task<string> ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector, CancellationToken cancellationToken = default)
ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>>)
Get SQL preview for debugging.
public Task<string> ToSqlStringAsync<TResult>(Expression<Func<IRedbGrouping<TKey, TProps>, TResult>> selector)
Constructors
GroupedWindowedQueryable(IRedbQueryProvider, long, Expression, GroupedWindowSpec<TKey, TProps>, FilterExpression?)
Constructor with FilterExpression (Pro version).
GroupedWindowedQueryable(IRedbQueryProvider, long, Expression, GroupedWindowSpec<TKey, TProps>, string?, FilterExpression?, string?)
Constructor for a GroupBy with HAVING: the window runs over the groups that pass it.
GroupedWindowedQueryable(IRedbQueryProvider, long, Expression, GroupedWindowSpec<TKey, TProps>, string?)
Constructor with filterJson (legacy compatibility).