GSoC:2008/Collections 2.0/Operator list
From XMMS2
Contents |
General operators
Universe
| Type identifier | XMMS_COLLECTION_TYPE_UNIVERSE
|
|---|---|
| Result |
All mediaids in the medialibrary |
| Attributes |
none |
| Operands |
none |
Idlist
| Type identifier | XMMS_COLLECTION_TYPE_IDLIST
|
|---|---|
| Result |
A medialist containing the mediaids in the |
| Attributes |
|
| Operands |
Zero or one |
Reference
| Type identifier | XMMS_COLLECTION_TYPE_REFERENCE
|
|---|---|
| Result |
All mediaids in the collection identified by the |
| Attributes |
|
| Operands |
none (except on the daemon-side, where the referenced collection can be attached as an operand to the reference-operator) |
Combining operators
Complement
| Type identifier | XMMS_COLLECTION_TYPE_COMPLEMENT
|
|---|---|
| Result |
All mediaids in medialibrary, except those in the operand. |
| Attributes |
none |
| Operands |
Exactly one |
Intersection
| Type identifier | XMMS_COLLECTION_TYPE_INTERSECTION
|
|---|---|
| Result |
The mediaids that appear in all operands |
| Attributes |
none |
| Operands |
One or more |
Union
| Type identifier | XMMS_COLLECTION_TYPE_UNION
|
|---|---|
| Result |
The mediaids that appear in any of the operands |
| Attributes |
none |
| Operands |
One or more |
Concatenation
| Type identifier | XMMS_COLLECTION_TYPE_CONCATENATION
|
|---|---|
| Result |
A medialist of the operands behind each other |
| Attributes |
none |
| Operands |
One or more medialists |
Intersection Ordered (soon too be abolished in favour of Intersection)
| Type identifier | XMMS_COLLECTION_TYPE_INTERSECTION_ORDERED
|
|---|---|
| Result |
The first operand, but only with the mediaids that are also in the second operand |
| Attributes |
none |
| Operands |
Exactly two |
Filtering operators
Has
| Type identifier | XMMS_COLLECTION_TYPE_HAS
|
|---|---|
| Result |
The operand, but only with the mediaids that have a property with a given name, as well as a given source, where only properties are examined using the given source-preference. |
| Attributes |
|
| Operands |
Exactly one |
Id
| Type identifier | XMMS_COLLECTION_TYPE_ID
|
|---|---|
| Result |
The operand, but only with the mediaids for which id |
| Attributes |
|
| Operands |
Exactly one |
Compare
| Type identifier | XMMS_COLLECTION_TYPE_COMPARE
|
|---|---|
| Result |
The operand, but only with the mediaids that have a property with a given name, as well as a given source and a value for which the expression value |
| Attributes |
|
| Operands |
Exactly one |
Match
| Type identifier | XMMS_COLLECTION_TYPE_MATCH
|
|---|---|
| Result |
The operand, but only with the mediaids that have a property with a given name, as well as a given source and a value matching the pattern found in the |
| Attributes |
|
| Operands |
Exactly one |
Token
| Type identifier | XMMS_COLLECTION_TYPE_TOKEN
|
|---|---|
| Result |
The operand, but only with the mediaids that have a property with a given name, as well as a given source and a value consisting of no other tokens than those in the value-attribute, given a collation, where only properties are examined using the given source-preference. To tokenize a string it is split on whitespace, after which all non-alphanumeric characters are stripped from the separate parts. |
| Attributes |
|
| Operands |
Exactly one |
Date (reserved)
| Type identifier | XMMS_COLLECTION_TYPE_DATE
|
|---|---|
| Result |
undefined |
| Attributes |
undefined |
| Operands |
Exactly one |
'Medialist' operators
Order
| Type identifier | XMMS_COLLECTION_TYPE_ORDER
|
|---|---|
| Result |
A medialist, with the mediaids in the operand sorted according to a value depending on the |
| Attributes |
|
| Operands |
Exactly one |
Limit
| Type identifier | XMMS_COLLECTION_TYPE_LIMIT
|
|---|---|
| Result |
A medialist equal to the operand, but without the first |
| Attributes |
|
| Operands |
Exactly one (a medialist) |
Mediaset
| Type identifier | XMMS_COLLECTION_TYPE_MEDIASET
|
|---|---|
| Result |
A mediaset containing the mediaids in the operand. (Removing duplicates and order) |
| Attributes |
none |
| Operands |
Exactly one |

