Class GroupMultiset
Multiset which represents a Grouping of Sets from another Multiset.
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.Algebra
Assembly: dotNetRDF.dll
Syntax
public class GroupMultiset : Multiset
Constructors
| Improve this Doc View SourceGroupMultiset(BaseMultiset)
Creates a new Group Multiset.
Declaration
public GroupMultiset(BaseMultiset contents)
Parameters
Type | Name | Description |
---|---|---|
BaseMultiset | contents | Multiset which contains the sets that are being grouped. |
Properties
| Improve this Doc View SourceContents
Gets the Multiset which contains the Sets who are the members of the Groups this Multiset represents.
Declaration
public BaseMultiset Contents { get; }
Property Value
Type | Description |
---|---|
BaseMultiset |
Groups
Gets the enumeration of the Groups in the Multiset.
Declaration
public IEnumerable<BindingGroup> Groups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BindingGroup> |
Methods
| Improve this Doc View SourceAdd(ISet)
Adds a Set to the Group Multiset.
Declaration
public override void Add(ISet s)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
Overrides
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since this action is invalid on a Group Multiset. |
AddGroup(BindingGroup)
Adds a Group to the Multiset.
Declaration
public void AddGroup(BindingGroup group)
Parameters
Type | Name | Description |
---|---|---|
BindingGroup | group |
Group(Int32)
Gets the Group with the given ID.
Declaration
public BindingGroup Group(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Group ID. |
Returns
Type | Description |
---|---|
BindingGroup |
GroupSetIDs(Int32)
Gets the enumeration of the IDs of Sets in the group with the given ID.
Declaration
public IEnumerable<int> GroupSetIDs(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | Group ID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> |