You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "John Huss (Created) (JIRA)" <ji...@apache.org> on 2012/02/27 21:57:48 UTC

[jira] [Created] (CAY-1675) [PATCH] add .first(List) method to Expression to enhance in-memory filtering

[PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
-------------------------------------------------------------------------------

                 Key: CAY-1675
                 URL: https://issues.apache.org/jira/browse/CAY-1675
             Project: Cayenne
          Issue Type: Improvement
          Components: Core Library
    Affects Versions: 3.1M4
            Reporter: John Huss
            Priority: Trivial
         Attachments: expression_first_match_patch.txt

Add .first(List<T>) method to Expression to enhance in-memory filtering.  This is a very helpful convenience making one-liners possible where an expression is known to return a single result (like filtering on a unique key).  Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAY-1675) [PATCH] add .first(List) method to Expression to enhance in-memory filtering

Posted by "Andrus Adamchik (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik reassigned CAY-1675:
------------------------------------

    Assignee: Andrus Adamchik
    
> [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
> -------------------------------------------------------------------------------
>
>                 Key: CAY-1675
>                 URL: https://issues.apache.org/jira/browse/CAY-1675
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: John Huss
>            Assignee: Andrus Adamchik
>            Priority: Trivial
>              Labels: patch
>         Attachments: expression_first_match_patch.txt
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Add .first(List<T>) method to Expression to enhance in-memory filtering.  This is a very helpful convenience making one-liners possible where an expression is known to return a single result (like filtering on a unique key).  Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (CAY-1675) [PATCH] add .first(List) method to Expression to enhance in-memory filtering

Posted by "Andrus Adamchik (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik closed CAY-1675.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M4
    
> [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
> -------------------------------------------------------------------------------
>
>                 Key: CAY-1675
>                 URL: https://issues.apache.org/jira/browse/CAY-1675
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: John Huss
>            Assignee: Andrus Adamchik
>            Priority: Trivial
>              Labels: patch
>             Fix For: 3.1M4
>
>         Attachments: expression_first_match_patch.txt
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Add .first(List<T>) method to Expression to enhance in-memory filtering.  This is a very helpful convenience making one-liners possible where an expression is known to return a single result (like filtering on a unique key).  Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAY-1675) [PATCH] add .first(List) method to Expression to enhance in-memory filtering

Posted by "Andrus Adamchik (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAY-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217951#comment-13217951 ] 

Andrus Adamchik commented on CAY-1675:
--------------------------------------

+1. Although we need a more efficient implementation ... there's no need to do call filterObjects, to return just the first object in the list and throw away the rest. I can take care of this change, which is pretty trivial.
                
> [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
> -------------------------------------------------------------------------------
>
>                 Key: CAY-1675
>                 URL: https://issues.apache.org/jira/browse/CAY-1675
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: John Huss
>            Priority: Trivial
>              Labels: patch
>         Attachments: expression_first_match_patch.txt
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Add .first(List<T>) method to Expression to enhance in-memory filtering.  This is a very helpful convenience making one-liners possible where an expression is known to return a single result (like filtering on a unique key).  Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAY-1675) [PATCH] add .first(List) method to Expression to enhance in-memory filtering

Posted by "John Huss (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Huss updated CAY-1675:
---------------------------

    Attachment: expression_first_match_patch.txt
    
> [PATCH] add .first(List<T>) method to Expression to enhance in-memory filtering
> -------------------------------------------------------------------------------
>
>                 Key: CAY-1675
>                 URL: https://issues.apache.org/jira/browse/CAY-1675
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: John Huss
>            Priority: Trivial
>              Labels: patch
>         Attachments: expression_first_match_patch.txt
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Add .first(List<T>) method to Expression to enhance in-memory filtering.  This is a very helpful convenience making one-liners possible where an expression is known to return a single result (like filtering on a unique key).  Patch attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira