nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher McDermott (JIRA)" <>
Subject [jira] [Commented] (NIFI-1661) Expression language should support a random function
Date Mon, 18 Apr 2016 13:51:25 GMT


Christopher McDermott commented on NIFI-1661:

I'll update the PR.  I would like to avoid negative numbers.  I think it just makes it more
complicated than it needs to be.  I'll use Math.abs() to address it.

> Expression language should support a random function
> ----------------------------------------------------
>                 Key: NIFI-1661
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Christopher McDermott
>            Assignee: Joe Skora
>            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

View raw message