Class NullMultiset
Represents a Multiset when there are no possible Solutions.
Inheritance
System.Object
NullMultiset
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)
Assembly: dotNetRDF.dll
Syntax
public class NullMultiset : BaseMultiset
Properties
|
Improve this Doc
View Source
IsEmpty
Returns true since the Null Multiset is always empty.
Declaration
public override bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Item[Int32]
Gets the Set with the given ID.
Declaration
public override ISet this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
Set ID. |
Property Value
Overrides
Exceptions
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<System.Int32> |
|
Overrides
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<ISet> |
|
Overrides
|
Improve this Doc
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 |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
Methods
|
Improve this Doc
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
Exceptions
Type |
Condition |
RdfQueryException |
Thrown since the operation is invalid on a Null Multiset. |
|
Improve this Doc
View Source
AddVariable(String)
Adds a Variable to this Multiset.
Declaration
public override void AddVariable(string variable)
Parameters
Type |
Name |
Description |
System.String |
variable |
Variable. |
Overrides
Exceptions
Type |
Condition |
RdfQueryException |
Thrown since the operation is invalid on a Null Multiset. |
|
Improve this Doc
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 |
System.String |
var |
Variable. |
INode |
n |
Value. |
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
ContainsVariable(String)
Returns false since the Null Multiset contains no variables.
Declaration
public override bool ContainsVariable(string var)
Parameters
Type |
Name |
Description |
System.String |
var |
Variable. |
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
ExistsJoin(BaseMultiset, Boolean)
Exists Joins another Multiset to this Null Mutliset.
Declaration
public override BaseMultiset ExistsJoin(BaseMultiset other, bool mustExist)
Parameters
Type |
Name |
Description |
BaseMultiset |
other |
Other Multiset. |
System.Boolean |
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
|
Improve this Doc
View Source
IsDisjointWith(BaseMultiset)
Returns true since the Null Multiset is disjoint with all Multisets.
Declaration
public override bool IsDisjointWith(BaseMultiset other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
Join(BaseMultiset)
Joins another Multiset to this Null Mutliset.
Declaration
public override BaseMultiset Join(BaseMultiset other)
Parameters
Returns
Type |
Description |
BaseMultiset |
Results in this Null Multiset since Null joined to anything is Null.
|
Overrides
|
Improve this Doc
View Source
LeftJoin(BaseMultiset, ISparqlExpression)
Left Joins another Multiset to this Null Mutliset.
Declaration
public override BaseMultiset LeftJoin(BaseMultiset other, ISparqlExpression expr)
Parameters
Returns
Type |
Description |
BaseMultiset |
Results in this Null Multiset since Null joined to anything is Null.
|
Overrides
|
Improve this Doc
View Source
MinusJoin(BaseMultiset)
Minus Joins this Multiset to another Multiset.
Declaration
public override BaseMultiset MinusJoin(BaseMultiset other)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Product(BaseMultiset)
Computes the Product of this Multiset and another Multiset.
Declaration
public override BaseMultiset Product(BaseMultiset other)
Parameters
Returns
Type |
Description |
BaseMultiset |
Results in the Other Multiset since for Product we consider this Multiset to contain a single empty Set.
|
Overrides
|
Improve this Doc
View Source
Remove(Int32)
Removes a Set from a Multiset.
Declaration
public override void Remove(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
Set ID. |
Overrides
Exceptions
Type |
Condition |
RdfQueryException |
Thrown since the operation is invalid on a Null Multiset. |
|
Improve this Doc
View Source
SetVariableOrder(IEnumerable<String>)
Sets the variable ordering for the multiset.
Declaration
public override void SetVariableOrder(IEnumerable<string> variables)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
variables |
Variable Ordering. |
Overrides
|
Improve this Doc
View Source
Union(BaseMultiset)
Unions this Multiset with another Multiset.
Declaration
public override BaseMultiset Union(BaseMultiset other)
Parameters
Returns
Type |
Description |
BaseMultiset |
Results in the Other Multiset as this is an empty Multiset.
|
Overrides
Extension Methods