example for unblocked import

  import org.eclipse.paho.client.mqttv3.MqttClient
  import org.eclipse.paho.client.mqttv3.MqttClientPersistence
  import org.eclipse.paho.client.mqttv3.MqttException
  import org.eclipse.paho.client.mqttv3.MqttMessage
  import org.eclipse.paho.client.mqttv3.MqttTopic

this can also be represented using blocked method as follows

  import org.eclipse.paho.client.mqttv3.{MqttClient, MqttException,
MqttMessage, MqttTopic, MqttClientPersistence}




On Thu, Mar 13, 2014 at 1:39 PM, Prashant Sharma <scrapco...@gmail.com>wrote:

> What exactly do you mean by blocked and unblocked import ?
>
> Prashant Sharma
>
>
> On Thu, Mar 13, 2014 at 1:32 PM, prabeesh k <prabsma...@gmail.com> wrote:
>
> > Hi All,
> >
> > We can import packages in Scala as blocked import and unblocked import.
> >
> > I think blocked import is better than other. This method helps to  reduce
> > LOC.
> >
> > But in Spark code using mixed type, It is better choose any of both.
> >
> > Please post your thoughts on the  Scala Style for import
> >
> > Regards,
> > prabeesh
> >
>

Reply via email to