Class BaseHashFunction
Abstract base class for Hash Functions.
Inheritance
System.Object
BaseHashFunction
Implements
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)
Namespace: VDS.RDF.Query.Expressions.Functions.Sparql.Hash
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseHashFunction : BaseUnaryExpression, ISparqlExpression
Constructors
| Improve this Doc View SourceBaseHashFunction(ISparqlExpression, HashAlgorithm)
Creates a new Hash function.
Declaration
public BaseHashFunction(ISparqlExpression expr, HashAlgorithm hash)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | expr | Expression. |
System.Security.Cryptography.HashAlgorithm | hash | Hash Algorithm to use. |
Properties
| Improve this Doc View SourceType
Gets the Type of the Expression.
Declaration
public override SparqlExpressionType Type { get; }
Property Value
Type | Description |
---|---|
SparqlExpressionType |
Overrides
Methods
| Improve this Doc View SourceEvaluate(SparqlEvaluationContext, Int32)
Gets the value of the function in the given Evaluation Context for the given Binding ID.
Declaration
public override IValuedNode Evaluate(SparqlEvaluationContext context, int bindingID)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Int32 | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
IValuedNode |
Overrides
| Improve this Doc View SourceHash(String)
Computes Hashes.
Declaration
protected virtual string Hash(string input)
Parameters
Type | Name | Description |
---|---|---|
System.String | input | Input String. |
Returns
Type | Description |
---|---|
System.String |
ToString()
Gets the String representation of the function.
Declaration
public abstract override string ToString()
Returns
Type | Description |
---|---|
System.String |