Show / Hide Table of Contents

Class BaseHashFunction

Abstract base class for Hash Functions.
Inheritance
System.Object
BaseUnaryExpression
BaseHashFunction
Sha1Function
MD5HashFunction
Sha256HashFunction
Sha1HashFunction
Sha384HashFunction
Sha512HashFunction
Implements
ISparqlExpression
Inherited Members
BaseUnaryExpression._expr
BaseUnaryExpression.Variables
BaseUnaryExpression.Functor
BaseUnaryExpression.Arguments
BaseUnaryExpression.CanParallelise
BaseUnaryExpression.Transform(IExpressionTransformer)
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 Source

BaseHashFunction(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 Source

Type

Gets the Type of the Expression.
Declaration
public override SparqlExpressionType Type { get; }
Property Value
Type Description
SparqlExpressionType
Overrides
BaseUnaryExpression.Type

Methods

| Improve this Doc View Source

Evaluate(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
BaseUnaryExpression.Evaluate(SparqlEvaluationContext, Int32)
| Improve this Doc View Source

Hash(String)

Computes Hashes.
Declaration
protected virtual string Hash(string input)
Parameters
Type Name Description
System.String input Input String.
Returns
Type Description
System.String
| Improve this Doc View Source

ToString()

Gets the String representation of the function.
Declaration
public abstract override string ToString()
Returns
Type Description
System.String
Overrides
BaseUnaryExpression.ToString()

Implements

ISparqlExpression

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseHashFunction(ISparqlExpression, HashAlgorithm)
  • Properties
    • Type
  • Methods
    • Evaluate(SparqlEvaluationContext, Int32)
    • Hash(String)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX