Show / Hide Table of Contents

Class BaseAggregate

Abstract Base Class for Aggregate Functions.

Inheritance
object
BaseAggregate
AllAggregate
AnyAggregate
MedianAggregate
ModeAggregate
NoneAggregate
NumericMaxAggregate
NumericMinAggregate
AverageAggregate
CountAggregate
CountAllAggregate
CountAllDistinctAggregate
CountDistinctAggregate
MaxAggregate
MinAggregate
SampleAggregate
SumAggregate
StringJoinAggregate
Implements
ISparqlAggregate
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Aggregates
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseAggregate : ISparqlAggregate

Constructors

| Edit this page View Source

BaseAggregate(ISparqlExpression)

Base Constructor for Aggregates.

Declaration
public BaseAggregate(ISparqlExpression expr)
Parameters
Type Name Description
ISparqlExpression expr

Expression that the aggregate is over.

| Edit this page View Source

BaseAggregate(ISparqlExpression, bool)

Base Constructor for Aggregates.

Declaration
public BaseAggregate(ISparqlExpression expr, bool distinct)
Parameters
Type Name Description
ISparqlExpression expr

Expression that the aggregate is over.

bool distinct

Whether a Distinct modifer is applied.

Fields

| Edit this page View Source

_distinct

Whether a DISTINCT modifer is applied.

Declaration
protected bool _distinct
Field Value
Type Description
bool
| Edit this page View Source

_expr

Expression that the aggregate operates over.

Declaration
protected ISparqlExpression _expr
Field Value
Type Description
ISparqlExpression

Properties

| Edit this page View Source

Arguments

Gets the Arguments of the Expression.

Declaration
public virtual IEnumerable<ISparqlExpression> Arguments { get; }
Property Value
Type Description
IEnumerable<ISparqlExpression>
| Edit this page View Source

Distinct

Get whether the aggregate should apply only to distinct values.

Declaration
public bool Distinct { get; }
Property Value
Type Description
bool
| Edit this page View Source

Expression

Expression that the Aggregate executes over.

Declaration
public ISparqlExpression Expression { get; }
Property Value
Type Description
ISparqlExpression
| Edit this page View Source

Functor

Gets the Functor of the Aggregate.

Declaration
public abstract string Functor { get; }
Property Value
Type Description
string
| Edit this page View Source

Type

Gets the Type of the Expression.

Declaration
public SparqlExpressionType Type { get; }
Property Value
Type Description
SparqlExpressionType

Methods

| Edit this page View Source

Accept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding>, TContext, IEnumerable<TBinding>)

Called when the aggregate is visited during algebra processing.

Declaration
public abstract 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.

| Edit this page View Source

ToString()

Gets the String representation of the Aggregate.

Declaration
public override abstract string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ISparqlAggregate

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseAggregate(ISparqlExpression)
    • BaseAggregate(ISparqlExpression, bool)
  • Fields
    • _distinct
    • _expr
  • Properties
    • Arguments
    • Distinct
    • Expression
    • Functor
    • Type
  • Methods
    • Accept<TResult, TContext, TBinding>(ISparqlAggregateProcessor<TResult, TContext, TBinding>, TContext, IEnumerable<TBinding>)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX