OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Updated: (ODATA-72) Describe any() and all() lambda filter expressions


     [ http://tools.oasis-open.org/issues/browse/ODATA-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralf Handl updated ODATA-72:
----------------------------

       Proposal: 
Add sections 

5.1.1.5 Lambda Operators
OData defines two operators that evaluate a boolean expression on a collection of entities or complex type instances. Both must be prepended with a navigation path that identifies a collection.

5.1.1.5.1 any
The any operator applies a boolean expression to each member of a collection and evaluates to true if the expression is true for any member of the collection. As a special case the boolean expression may be empty, in which the any operator evaluates to true if the collection is not empty.

For example:

http://services.odata.org/Northwind/Northwind.svc/Orders?$filter=Order_Details/any(d:d/Quantity gt 10)

Returns all Orders that have any Orderlines with a Quantity greater than 10.

5.1.1.5.2 all
The all operator applies a boolean expression to each member of a collection and evaluates to true if the expression is true for all members of the collection.

For example:

http://services.odata.org/Northwind/Northwind.svc/Orders?$filter=Order_Details/all(d:d/Quantity gt 10)

Returns all Orders that have only Orderlines with a Quantity greater than 10.
    Environment: [Proposed]

> Describe any() and all() lambda filter expressions 
> ---------------------------------------------------
>
>                 Key: ODATA-72
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-72
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData URL Conventions v1.0
>    Affects Versions: WD01
>         Environment: [Proposed]
>            Reporter: Ralf Handl
>            Priority: Minor
>             Fix For: WD01
>
>
> These expressions are currently only mentioned in the ABNF, without a semantic description or examples in the URL Conventions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]