Class MaxAggregate
Class representing MAX Aggregate Functions.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Aggregates.Sparql
Assembly: dotNetRdf.dll
Syntax
public class MaxAggregate : BaseAggregate, ISparqlAggregate
Constructors
| Edit this page View SourceMaxAggregate(ISparqlExpression)
Creates a new MAX Aggregate.
Declaration
public MaxAggregate(ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression. |
MaxAggregate(ISparqlExpression, bool)
Creates a new MAX Aggregate.
Declaration
public MaxAggregate(ISparqlExpression expr, bool distinct)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression. |
bool | distinct | Whether a DISTINCT modifier applies. |
MaxAggregate(ISparqlExpression, ISparqlExpression)
Creates a new MAX Aggregate.
Declaration
public MaxAggregate(ISparqlExpression distinct, ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | distinct | Distinct Modifier. |
ISparqlExpression | expr | Expression. |
MaxAggregate(VariableTerm)
Creates a new MAX Aggregate.
Declaration
public MaxAggregate(VariableTerm expr)
Parameters
Type | Name | Description |
---|---|---|
VariableTerm | expr | Variable Expression. |
MaxAggregate(VariableTerm, bool)
Creates a new MAX Aggregate.
Declaration
public MaxAggregate(VariableTerm expr, bool distinct)
Parameters
Type | Name | Description |
---|---|---|
VariableTerm | expr | Variable Expression. |
bool | distinct | Whether a DISTINCT modifier applies. |
Properties
| Edit this page View SourceFunctor
Gets the Functor of the Aggregate.
Declaration
public override string Functor { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceVariable
Get the name of the variable that is aggregated if the aggregation operates on a simple variable term, otherwise this property will return null.
Declaration
public string Variable { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceAccept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding>, TContext, IEnumerable<TBinding>)
Called when the aggregate is visited during algebra processing.
Declaration
public override TResult Accept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding> processor, TContext context, IEnumerable<TBinding> bindings)
Parameters
Type | Name | Description |
---|---|---|
ISparqlAggregateProcessor<TResult, TContext, TBinding> | processor | The processor that handles this algebra. |
TContext | context | The current context. |
IEnumerable<TBinding> | bindings | The current set of bindings. |
Returns
Type | Description |
---|---|
TResult | The result of the aggregate processing. |
Type Parameters
Name | Description |
---|---|
TResult | The type of result object returned by the processor. |
TContext | The type of the context object to be passed to the processor. |
TBinding | The type of the binding objects to be passed to the processor. |
Overrides
| Edit this page View SourceToString()
Gets the String representation of the Aggregate.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |