Show / Hide Table of Contents

Class ResultCountHandler

A SPARQL Results Handler which just counts Results.
Inheritance
System.Object
BaseHandler
BaseResultsHandler
ResultCountHandler
Implements
ISparqlResultsHandler
INodeFactory
Inherited Members
BaseResultsHandler.StartResults()
BaseResultsHandler.EndResults(Boolean)
BaseResultsHandler.EndResultsInternal(Boolean)
BaseResultsHandler.HandleBooleanResult(Boolean)
BaseResultsHandler.HandleVariable(String)
BaseResultsHandler.HandleResult(SparqlResult)
BaseHandler.NodeFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(String)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(String, Uri)
BaseHandler.CreateLiteralNode(String)
BaseHandler.CreateLiteralNode(String, String)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateVariableNode(String)
BaseHandler.GetNextBlankNodeID()
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 Source

ResultCountHandler()

Creates a new Result Count Handler.
Declaration
public ResultCountHandler()

Properties

| Improve this Doc View Source

Count

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 Source

HandleBooleanResultInternal(Boolean)

Handles a Boolean Result.
Declaration
protected override void HandleBooleanResultInternal(bool result)
Parameters
Type Name Description
System.Boolean result Result.
Overrides
BaseResultsHandler.HandleBooleanResultInternal(Boolean)
| Improve this Doc View Source

HandleResultInternal(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
BaseResultsHandler.HandleResultInternal(SparqlResult)
| Improve this Doc View Source

HandleVariableInternal(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
BaseResultsHandler.HandleVariableInternal(String)
| Improve this Doc View Source

StartResultsInternal()

Starts Results Handling and resets the counter to zero.
Declaration
protected override void StartResultsInternal()
Overrides
BaseResultsHandler.StartResultsInternal()

Implements

ISparqlResultsHandler
INodeFactory

Extension Methods

Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(ISparqlResultsHandler, SparqlResultSet)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ResultCountHandler()
  • Properties
    • Count
  • Methods
    • HandleBooleanResultInternal(Boolean)
    • HandleResultInternal(SparqlResult)
    • HandleVariableInternal(String)
    • StartResultsInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX