You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Joel Bernstein (JIRA)" <ji...@apache.org> on 2018/05/27 23:35:00 UTC

[jira] [Comment Edited] (SOLR-12401) Streaming functions getValue() and setValue()

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

Joel Bernstein edited comment on SOLR-12401 at 5/27/18 11:34 PM:
-----------------------------------------------------------------

Initial implementation with basic tests. I've also done quite a bit of manual testing 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.


was (Author: joel.bernstein):
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org