Good point, I agree with Fabian.


On Thu, Feb 20, 2014 at 11:48 PM, Fabian Hueske <notifications@github.com>wrote:

> In docs/0.5/index.markdown:
>
> > +    @Override
> > +    public void open(Configuration parameters) throws Exception {
> > +        // receive the variables' content
> > +        this.myBcRecords = this.getRuntimeContext().getBroadcastVariable("my_bc_var");
> > +    }
> > +
> > +    @Override
> > +    public void map(Record record, Collector<Record> out) {
> > +       for (Record r : myBcRecords) {
> > +       	   // do something with the records
> > +       }
> > +
> > +    }
> > +}
> > +{% endhighlight %}
> > +*Note*: As the content of broadcast variables is kept in-memory on each node, it should not become too large. Currently broadcast variable do not support branching, therefore it is not possible to use <code>someBcInput</code> (in the above example) as input for another operator.
>
> We use the term "branching" (plan or operator) only internally and I think
> it might confuse users who are not familiar with the concept.
> I would therefore avoid using this term in the documentation and simply
> state, that at the moment a bc input can not be used as another input
> (either regular input or as another bc input). Also mention, that we plan
> to drop this limitation in a future release.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/stratosphere/stratosphere/pull/489/files#r9928778>
> .
>