score:24
Accepted answer
It's just the negation of the contains
filter predicate :
val rdd2 = rdd1.filter(x => !(x._1 contains "."))
Source: stackoverflow.com
Related Query
- Scala Spark contains vs. does not contain
- VectorAssembler does not support the StringType type scala spark convert
- Scala with spark - "javax.servlet.ServletRegistration"'s signer information does not match signer information of other classes in the same package
- Why does the Scala compiler give "value registerKryoClasses is not a member of org.apache.spark.SparkConf" for Spark 1.4?
- Spark does not find Scala specific methods
- Equality of Scala case class does not work in junit assertEquals when it contains an inner Array
- MongoTypeConversionException: Cannot cast STRING into a NullType with Mongo Spark Connector even when explicit schema does not contain NullTypes
- scala & Spark - ArrayBuffer does not append
- Spark Scala code does not compile when used with a encoder + by name
- What is the efficient way to create Spark DataFrame in Scala with array type columns from another DataFrame that does not have an array column?
- Scala Spark loop goes through without any error, but does not produce an output
- Code does not terminate on second iteration in Scala Spark
- class java.lang.RuntimeException/Scala class file does not contain Scala annotation
- Spark Scala VectorAssembler IllegalArgumentException: XX does not exist. Available: number
- spark scala maven error: SparkConf does not have a constructor
- Why does pattern matching in Scala not work with variables?
- Any reason why scala does not explicitly support dependent types?
- Editor does not contain a main type
- Eclipse, Android, Scala made easy but still does not work
- scala string.split does not work
- Why to use empty parentheses in Scala if we can just use no parentheses to define a function which does not need any arguments?
- Why does Scala not have a return/unit function defined for each monad (in contrast to Haskell)?
- reduceByKey method not being found in Scala Spark
- Scala Slick, how to create Schema ONLY if it does not exist
- Spark - "sbt package" - "value $ is not a member of StringContext" - Missing Scala plugin?
- Why does Haskell's foldr NOT stackoverflow while the same Scala implementation does?
- Why does Iterator have a contains method but Iterable does not, in Scala 2.8?
- Scala String toInt - Int does not take parameters
- Why does this Scala function compile when the argument does not conform to the type constraint?
- IntelliJ IDEA Hotkey for comment does not work with Scala
More Query from same tag
- play framework json reads from empty string to empty list
- Is it reasonable to view highly autonomous actors as agents?
- How to find actual min API level supported by android project?
- Compilation Issue with Scala Netbeans Plugin
- Scala - initialization order of vals
- In Scala - How to get the day of the week?
- Extend object inside of trait in Scala
- How Does One Make Scala Control Abstraction in Repeat Until?
- Spark to Hbase using Oozie
- why my spark job stuck in kafka streaming
- Collecting all identifers in scope
- Build a scala interpreter in the browser
- How to check if a scala Option type is None in Java code
- How to improve the error message readability returned from JsError.toFlatJson or JsError.toJson in Play framework 2.x?
- How do I handle my json writes to update existing objects in ReactiveMongo?
- scala.MatchError on Dataframe Mapping to RDD
- overloaded method value filter with alternatives: in play-framework 2.6
- Scala Map pattern matching
- Cannot pass broker list parameter from Scala to Kafka: Property bootstrap.servers is not valid
- Filter spark paths on `input_file_name`
- Deleting indexed nodes in Neo4j
- How can I get the Intellij debugger to treat custom scala monads the same as the standard ones?
- Could this task be solved using more functional approach?
- Case Class in scala for nested JSON
- False "Combinational loop detected"
- Is there a more idiomatic way of getting IO[Option[A]] from Option[IO[Option[A]] then using sequence and mapping join?
- Implementing List#flatten in Haskell
- Spark Excel Write options
- Converting Scala String to Xml in .xml.scala Template
- How do I run a Fast Scala Compiler remote server?