Class AnyAggregate
A Custom aggregate which requires the Expression to evaluate to true for at least one of the Sets in the Group.
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.Leviathan
Assembly: dotNetRDF.dll
Syntax
public class AnyAggregate : BaseAggregate, ISparqlAggregate
Constructors
| Improve this Doc View SourceAnyAggregate(ISparqlExpression)
Creates a new Any Aggregate.
Declaration
public AnyAggregate(ISparqlExpression expr)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlExpression | expr | Expression. |
AnyAggregate(ISparqlExpression, Boolean)
Creates a new Any Aggregate.
Declaration
public AnyAggregate(ISparqlExpression expr, bool distinct)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlExpression | expr | Expression. |
| System.Boolean | distinct | Whether a DISTINCT modifer applies. |
Properties
| Improve this Doc View SourceFunctor
Gets the Functor of the Aggregate.
Declaration
public override string Functor { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
| Improve this Doc View SourceApply(SparqlEvaluationContext, IEnumerable<Int32>)
Applies the Aggregate to see if the expression evaluates true for any member of the Group.
Declaration
public override IValuedNode Apply(SparqlEvaluationContext context, IEnumerable<int> bindingIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| SparqlEvaluationContext | context | Evaluation Context. |
| System.Collections.Generic.IEnumerable<System.Int32> | bindingIDs | Binding IDs. |
Returns
| Type | Description |
|---|---|
| IValuedNode |
Overrides
Remarks
Does lazy evaluation - as soon as it encounters a true it will return true.
|
Improve this Doc
View Source
ToString()
Gets the String Representation of the Aggregate.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |