Class ResultCountHandler
A SPARQL Results Handler which just counts Results.
Inherited Members
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class ResultCountHandler : BaseResultsHandler, ISparqlResultsHandler, INodeFactory
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.
Constructors
| Improve this Doc View SourceResultCountHandler()
Creates a new Result Count Handler.
Declaration
public ResultCountHandler()
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.
Properties
| Improve this Doc View SourceCount
Gets the Count of Results.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
For Boolean Results counter will be either 1 or 0 depending on whether the result was True/False.
Methods
| Improve this Doc View SourceHandleBooleanResultInternal(bool)
Handles a Boolean Result.
Declaration
protected override void HandleBooleanResultInternal(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Result. |
Overrides
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.
HandleResultInternal(ISparqlResult)
Handles a SPARQL Result by incrementing the counter.
Declaration
protected override bool HandleResultInternal(ISparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
ISparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.
HandleVariableInternal(string)
Handles a Variable Declaration.
Declaration
protected override bool HandleVariableInternal(string var)
Parameters
Type | Name | Description |
---|---|---|
string | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.
StartResultsInternal()
Starts Results Handling and resets the counter to zero.
Declaration
protected override void StartResultsInternal()
Overrides
Remarks
Note: For a Boolean Result Set the counter will either be 1 for true or 0 for false.