Class CountHandler
A RDF Handler which simply counts the Triples.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class CountHandler : BaseRdfHandler, IRdfHandler, INodeFactory
Constructors
| Improve this Doc View SourceCountHandler()
Creates a Handler which counts Triples.
Declaration
public CountHandler()
Properties
| Improve this Doc View SourceAcceptsAll
Gets that the Handler accepts all Triples.
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceCount
Gets the Count of Triples handled in the most recent parsing operation.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
Note that each time you reuse the handler the count is reset to 0.
Methods
| Improve this Doc View SourceHandleQuadInternal(Triple, IRefNode)
Handles the Quad by incrementing the Triple count.
Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
IRefNode | graph | The name of the graph containing the triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHandleTripleInternal(Triple)
Handles the Triple by incrementing the Triple count.
Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceStartRdfInternal()
Resets the current count to zero.
Declaration
protected override void StartRdfInternal()