Interface IDocumentAggregateCursor
Указатель на список документов для агрегации.
Inherited Members
Namespace:InfinniPlatform.DocumentStorage
Assembly:InfinniPlatform.DocumentStorage.Abstractions.dll
Syntax
public interface IDocumentAggregateCursor : IDocumentCursor<DynamicDocument>
Methods
| Improve this Doc View SourceGroup(DynamicDocument)
Группирует исходные документы по указанному выражению и производит вычисление заданных функций агрегации для каждой группы.
Declaration
IDocumentAggregateCursor Group(DynamicDocument group)
Parameters
Type | Name | Description |
---|---|---|
DynamicDocument | group | Правило группировки и агрегации групп данных. |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |
Limit(Int32)
Ограничивает результирующую выборку указанным количеством документов.
Declaration
IDocumentAggregateCursor Limit(int limit)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | limit |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |
Lookup(String, String, String, String)
Присоединяет к каждому исходному документу документ из указанной внешней коллекции в соответствии с заданным правилом (left outer join).
Declaration
IDocumentAggregateCursor Lookup(string foreignDocumentType, string localKeyProperty, string foreignKeyProperty, string resultArrayProperty)
Parameters
Type | Name | Description |
---|---|---|
System.String | foreignDocumentType | Имя типа внешнего документа. |
System.String | localKeyProperty | Свойство исходного документа, содержащее ключ для присоединения. |
System.String | foreignKeyProperty | Свойство внешнего документа, содержащее ключ для присоединения. |
System.String | resultArrayProperty | Свойство, в которое будет помещен массив присоединенных документов. |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |
Project(DynamicDocument)
Создает проекцию для отображения результата агрегации документов.
Declaration
IDocumentAggregateCursor Project(DynamicDocument projection)
Parameters
Type | Name | Description |
---|---|---|
DynamicDocument | projection | Правило формирования проекции. |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |
Skip(Int32)
Пропускает указанное количество документов в результирующей выборке.
Declaration
IDocumentAggregateCursor Skip(int skip)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | skip |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |
SortBy(String)
Сортирует документы по возрастанию указанного свойства.
Declaration
IDocumentAggregateSortedCursor SortBy(string property)
Parameters
Type | Name | Description |
---|---|---|
System.String | property |
Returns
Type | Description |
---|---|
IDocumentAggregateSortedCursor |
SortByDescending(String)
Сортирует документы по убыванию указанного свойства.
Declaration
IDocumentAggregateSortedCursor SortByDescending(string property)
Parameters
Type | Name | Description |
---|---|---|
System.String | property |
Returns
Type | Description |
---|---|
IDocumentAggregateSortedCursor |
Unwind(String)
Создает отдельный документ для каждого элемента массива, находящегося в указанном свойстве исходного документа.
Declaration
IDocumentAggregateCursor Unwind(string arrayProperty)
Parameters
Type | Name | Description |
---|---|---|
System.String | arrayProperty | Свойство документа, содержащее массив. |
Returns
Type | Description |
---|---|
IDocumentAggregateCursor |