[ 
https://issues.apache.org/jira/browse/SOLR-12401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492189#comment-16492189
 ] 

Joel Bernstein commented on SOLR-12401:
---------------------------------------

Initial implementation with basic tests. I've also done quite a bit of manual 
tested with the new functions and they look pretty good.

The one thing to keep in mind with setValue() is that due to various internal 
details the easiest implementation avoids side effects. This means that each 
call to setValue() results in a new tuple rather then a change to the original 
tuple.

> Streaming functions getValue() and setValue()
> ---------------------------------------------
>
>                 Key: SOLR-12401
>                 URL: https://issues.apache.org/jira/browse/SOLR-12401
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: streaming expressions
>            Reporter: Jan Høydahl
>            Priority: Major
>             Fix For: 7.4
>
>         Attachments: SOLR-12401.patch
>
>
> We need functions to retrieve a value from a tuple and to set a value in an 
> existing tuple:
> Joel writes in 
> [solr-user|https://lists.apache.org/thread.html/f8fb5ae325b172b8d1729e33445beddcc443f7bbd672760cdd0ed25c@%3Csolr-user.lucene.apache.org%3E]:
> {quote}We can add afunctions called:
>  getValue(tuple, key)
>  setValue(tuple, key, value)
> {quote}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to