Class SummaryFunction<T>
Defines a function that creates a summary item from a collection of items.
Inheritance
System.Object
SummaryFunction<T>
Implements
Namespace: Stac.Extensions
Assembly: DotNetStac.dll
Syntax
public class SummaryFunction<T> : object, ISummaryFunction
Type Parameters
Name | Description |
---|---|
T | The type of the items. |
Constructors
| Improve this Doc View SourceSummaryFunction(IStacExtension, String, CreateSummary<T>)
Initializes a new instance of the SummaryFunction<T> class.
Declaration
public SummaryFunction(IStacExtension extension, string propertyName, CreateSummary<T> summaryFunction)
Parameters
Type | Name | Description |
---|---|---|
IStacExtension | extension | The Stac Extension associated to the summary function. |
System.String | propertyName | The PropertyName of the summary function. |
CreateSummary<T> | summaryFunction | The summary function. |
Properties
| Improve this Doc View SourceExtension
Gets the Stac Extension associated to the summary function.
Declaration
public IStacExtension Extension { get; }
Property Value
Type | Description |
---|---|
IStacExtension |
PropertyName
Gets the PropertyName of the summary function.
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceSummarize(IEnumerable<Object>)
Summarize the items.
Declaration
public IStacSummaryItem Summarize(IEnumerable<object> items)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Object> | items | The items to summarize. |
Returns
Type | Description |
---|---|
IStacSummaryItem | The summary item. |