Class ResultCountHandler
A SPARQL Results Handler which just counts Results.
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)
System.Object.ToString()
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()
Properties
| Improve this Doc View SourceCount
Gets the Count of Results.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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(Boolean)
Handles a Boolean Result.
Declaration
protected override void HandleBooleanResultInternal(bool result)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | result | Result. |
Overrides
| Improve this Doc View SourceHandleResultInternal(SparqlResult)
Handles a SPARQL Result by incrementing the counter.
Declaration
protected override bool HandleResultInternal(SparqlResult result)
Parameters
Type | Name | Description |
---|---|---|
SparqlResult | result | Result. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleVariableInternal(String)
Handles a Variable Declaration.
Declaration
protected override bool HandleVariableInternal(string var)
Parameters
Type | Name | Description |
---|---|---|
System.String | var | Variable Name. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartResultsInternal()
Starts Results Handling and resets the counter to zero.
Declaration
protected override void StartResultsInternal()