How do I negate isin method in spark scala

Viewed 7171
val data= List("z", "f", "h")

sqlContext.sql("select name from table")
          .when($"name".isin(data:_*),1)
          .otherwise(0)
          .show

How do I do the opposite of isin? Do we have anything like isnotin?

1 Answers
Related