You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Joseph Witt (JIRA)" <ji...@apache.org> on 2016/04/05 19:15:25 UTC

[jira] [Updated] (NIFI-1661) Expression language should support a random function

     [ https://issues.apache.org/jira/browse/NIFI-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph Witt updated NIFI-1661:
------------------------------
    Fix Version/s: 0.7.0

> Expression language should support a random function
> ----------------------------------------------------
>
>                 Key: NIFI-1661
>                 URL: https://issues.apache.org/jira/browse/NIFI-1661
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Christopher McDermott
>            Priority: Minor
>             Fix For: 0.7.0
>
>
> Random would be a subjectless function that generates a 32? bit random number.  The random number generator need not be cryptographically secure. 
> A use case would be for random be to generate a random pattern across some number of file paths to be used with putFile.
> Example - puts files randomly to /my-dirs/dir-1, /my-dirs/dir-2, /my-dirs/dir-3
> /my-dirs/dir-${random():mod(3):plus(1)}/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)