Skip to content
Fabrice Laporte edited this page Mar 27, 2016 · 2 revisions

Buckets

Here are the three possibles syntaxes to use when defining buckets directory. Say you want to split movies into three groups : those having imdb ratings respectively lower/equal/higher than 7.x

  • lower bound match : use the + suffix to indicate a lower bound. eg '1+' directory captures all existing ratings
  • substring match : if tested value starts with directory name, the latter is selected. eg '7' directory capture all 7.x ratings
  • range match : use the [-] to indicate a range. eg '[8-9]' captures the 8.x and 9.x ratings

When multiple directories match, the one which matches more closely is selected.

Clone this wiki locally