Show / Hide Table of Contents

Class NullMultiset

Represents a Multiset when there are no possible Solutions.

Inheritance
object
BaseMultiset
NullMultiset
Inherited Members
BaseMultiset._orderedIDs
BaseMultiset.VirtualCount
BaseMultiset.UsePLinqEvaluation
BaseMultiset.Merge(BaseMultiset)
BaseMultiset.Sort(IComparer<ISet>)
BaseMultiset.Count
BaseMultiset.Trim()
BaseMultiset.Trim(string)
BaseMultiset.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class NullMultiset : BaseMultiset

Properties

| Edit this page View Source

IsEmpty

Returns true since the Null Multiset is always empty.

Declaration
public override bool IsEmpty { get; }
Property Value
Type Description
bool
Overrides
BaseMultiset.IsEmpty
| Edit this page View Source

this[int]

Gets the Set with the given ID.

Declaration
public override ISet this[int index] { get; }
Parameters
Type Name Description
int index

Set ID.

Property Value
Type Description
ISet
Overrides
BaseMultiset.this[int]
Exceptions
Type Condition
RdfQueryException

Thrown since the Null Multiset contains no Sets.

| Edit this page View Source

SetIDs

Returns an empty enumerable as the Null Multiset contains no Sets.

Declaration
public override IEnumerable<int> SetIDs { get; }
Property Value
Type Description
IEnumerable<int>
Overrides
BaseMultiset.SetIDs
| Edit this page View Source

Sets

Returns an empty enumerable as the Null Multiset contains no Sets.

Declaration
public override IEnumerable<ISet> Sets { get; }
Property Value
Type Description
IEnumerable<ISet>
Overrides
BaseMultiset.Sets
| Edit this page View Source

Variables

Returns an empty enumerable as the Null Multiset contains no Variables.

Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
BaseMultiset.Variables

Methods

| Edit this page View Source

Add(ISet)

Adds a Set to this Multiset.

Declaration
public override void Add(ISet s)
Parameters
Type Name Description
ISet s

Set.

Overrides
BaseMultiset.Add(ISet)
Exceptions
Type Condition
RdfQueryException

Thrown since the operation is invalid on a Null Multiset.

| Edit this page View Source

AddVariable(string)

Adds a Variable to this Multiset.

Declaration
public override void AddVariable(string variable)
Parameters
Type Name Description
string variable

Variable.

Overrides
BaseMultiset.AddVariable(string)
Exceptions
Type Condition
RdfQueryException

Thrown since the operation is invalid on a Null Multiset.

| Edit this page View Source

ContainsValue(string, INode)

Returns false since the Null Multiset contains no values.

Declaration
public override bool ContainsValue(string var, INode n)
Parameters
Type Name Description
string var

Variable.

INode n

Value.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsValue(string, INode)
| Edit this page View Source

ContainsVariable(string)

Returns false since the Null Multiset contains no variables.

Declaration
public override bool ContainsVariable(string var)
Parameters
Type Name Description
string var

Variable.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsVariable(string)
| Edit this page View Source

ContainsVariables(IEnumerable<string>)

Returns false since the Null Multiset contains no variables.

Declaration
public override bool ContainsVariables(IEnumerable<string> vars)
Parameters
Type Name Description
IEnumerable<string> vars

Variables.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsVariables(IEnumerable<string>)
| Edit this page View Source

ExistsJoin(BaseMultiset, bool)

Exists Joins another Multiset to this Null Multiset.

Declaration
public override BaseMultiset ExistsJoin(BaseMultiset other, bool mustExist)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

bool mustExist

Whether joinable solutions must exist in the other Multiset for joins to be made.

Returns
Type Description
BaseMultiset

Results in this Null Multiset since Null joined to anything is Null.

Overrides
BaseMultiset.ExistsJoin(BaseMultiset, bool)
| Edit this page View Source

IsDisjointWith(BaseMultiset)

Returns true since the Null Multiset is disjoint with any Multiset.

Declaration
public override bool IsDisjointWith(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
bool
Overrides
BaseMultiset.IsDisjointWith(BaseMultiset)
| Edit this page View Source

Join(BaseMultiset)

Joins another Multiset to this Null Mutliset.

Declaration
public override BaseMultiset Join(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

Results in this Null Multiset since Null joined to anything is Null.

Overrides
BaseMultiset.Join(BaseMultiset)
| Edit this page View Source

LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)

Left Joins another Multiset to this Null Multiset.

Declaration
public override BaseMultiset LeftJoin(BaseMultiset other, ISparqlExpression expr, SparqlEvaluationContext baseContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int> expressionProcessor)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

ISparqlExpression expr

Expression the join is predicate upon.

SparqlEvaluationContext baseContext

The parent context for the evaluation of the join.

ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int> expressionProcessor

The processor to use to evaluate expr.

Returns
Type Description
BaseMultiset

Results in this Null Multiset since Null joined to anything is Null.

Overrides
BaseMultiset.LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)
| Edit this page View Source

MinusJoin(BaseMultiset)

Minus Joins this Multiset to another Multiset.

Declaration
public override BaseMultiset MinusJoin(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset
Overrides
BaseMultiset.MinusJoin(BaseMultiset)
| Edit this page View Source

Product(BaseMultiset)

Computes the Product of this Multiset and another Multiset.

Declaration
public override BaseMultiset Product(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

Results in the Other Multiset since for Product we consider this Multiset to contain a single empty Set.

Overrides
BaseMultiset.Product(BaseMultiset)
| Edit this page View Source

Remove(int)

Removes a Set from a Multiset.

Declaration
public override void Remove(int id)
Parameters
Type Name Description
int id

Set ID.

Overrides
BaseMultiset.Remove(int)
Exceptions
Type Condition
RdfQueryException

Thrown since the operation is invalid on a Null Multiset.

| Edit this page View Source

SetVariableOrder(IEnumerable<string>)

Sets the variable ordering for the multiset.

Declaration
public override void SetVariableOrder(IEnumerable<string> variables)
Parameters
Type Name Description
IEnumerable<string> variables

Variable Ordering.

Overrides
BaseMultiset.SetVariableOrder(IEnumerable<string>)
| Edit this page View Source

Union(BaseMultiset)

Unions this Multiset with another Multiset.

Declaration
public override BaseMultiset Union(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

Results in the Other Multiset as this is an empty Multiset.

Overrides
BaseMultiset.Union(BaseMultiset)

Extension Methods

Extensions.ToSafeString(object)
AlgebraExtensions.ProductWithTimeout(BaseMultiset, BaseMultiset, long)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Properties
    • IsEmpty
    • this[int]
    • SetIDs
    • Sets
    • Variables
  • Methods
    • Add(ISet)
    • AddVariable(string)
    • ContainsValue(string, INode)
    • ContainsVariable(string)
    • ContainsVariables(IEnumerable<string>)
    • ExistsJoin(BaseMultiset, bool)
    • IsDisjointWith(BaseMultiset)
    • Join(BaseMultiset)
    • LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)
    • MinusJoin(BaseMultiset)
    • Product(BaseMultiset)
    • Remove(int)
    • SetVariableOrder(IEnumerable<string>)
    • Union(BaseMultiset)
  • Extension Methods
Back to top Generated by DocFX