Path: redb/redb.Core/Query/Window/IWindowSpec.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Query/Window/IWindowSpec.cs ---- using System.Linq.Expressions; using redb.Core.Models.Contracts; namespace redb.Core.Query.Window; /// /// Window specification for Window Functions. /// public interface IWindowSpec where TProps : class, new() { // ===== PARTITION BY ===== /// /// Partition by Props field. /// IWindowSpec PartitionBy(Expression> keySelector); /// /// Partition by IRedbObject base field (SchemeId, OwnerId, etc.). /// Uses IRedbObject for compile-time safety - Props not visible! /// IWindowSpec PartitionByRedb(Expression> keySelector); // ===== ORDER BY ===== /// /// Sort within window by Props field (ascending). /// IWindowSpec OrderBy(Expression> keySelector); /// /// Sort within window by Props field (descending). /// IWindowSpec OrderByDesc(Expression> keySelector); /// /// Sort within window by IRedbObject base field (ascending). /// Uses IRedbObject for compile-time safety - Props not visible! /// IWindowSpec OrderByRedb(Expression> keySelector); /// /// Sort within window by IRedbObject base field (descending). /// Uses IRedbObject for compile-time safety - Props not visible! /// IWindowSpec OrderByDescRedb(Expression> keySelector); // ===== FRAME ===== /// /// Sets Frame (ROWS BETWEEN) for sliding windows. /// IWindowSpec Frame(FrameSpec frame); }