Class BaseAggregate
Abstract Base Class for Aggregate Functions.
Inheritance
System.Object
BaseAggregate
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Aggregates
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseAggregate : ISparqlAggregate
Constructors
| Improve this Doc View SourceBaseAggregate(ISparqlExpression)
Base Constructor for Aggregates.
Declaration
public BaseAggregate(ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression that the aggregate is over. |
BaseAggregate(ISparqlExpression, Boolean)
Base Constructor for Aggregates.
Declaration
public BaseAggregate(ISparqlExpression expr, bool distinct)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression that the aggregate is over. |
System.Boolean | distinct | Whether a Distinct modifer is applied. |
Fields
| Improve this Doc View Source_distinct
Whether a DISTINCT modifer is applied.
Declaration
protected bool _distinct
Field Value
Type | Description |
---|---|
System.Boolean |
_expr
Expression that the aggregate operates over.
Declaration
protected ISparqlExpression _expr
Field Value
Type | Description |
---|---|
ISparqlExpression |
Properties
| Improve this Doc View SourceArguments
Gets the Arguments of the Expression.
Declaration
public virtual IEnumerable<ISparqlExpression> Arguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISparqlExpression> |
Expression
Expression that the Aggregate executes over.
Declaration
public ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Functor
Gets the Functor of the Aggregate.
Declaration
public abstract string Functor { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the Type of the Expression.
Declaration
public SparqlExpressionType Type { get; }
Property Value
Type | Description |
---|---|
SparqlExpressionType |
Methods
| Improve this Doc View SourceApply(SparqlEvaluationContext)
Applies the Aggregate to the Result Binder.
Declaration
public IValuedNode Apply(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
Returns
Type | Description |
---|---|
IValuedNode |
Apply(SparqlEvaluationContext, IEnumerable<Int32>)
Applies the Aggregate to the Result Binder.
Declaration
public abstract IValuedNode Apply(SparqlEvaluationContext context, IEnumerable<int> bindingIDs)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Collections.Generic.IEnumerable<System.Int32> | bindingIDs | Enumerable of Binding IDs over which the Aggregate applies. |
Returns
Type | Description |
---|---|
IValuedNode |
ToString()
Gets the String representation of the Aggregate.
Declaration
public abstract override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()