Could you please help me to figure out what happens while initializing Spark RDD?
There is an official example here:
val capitals = spark.read.parquet("capitals.parquet").select("name", "country")
val luceneRDD = LuceneRDD(capitals)
val result = luceneRDD.termQuery("name", "ottawa", 10)
But I'm not familiar with Scala and have troubles with reading source-code. Could you pls answer next questions:
- How does spark-lucenerdd index
capitals.parquet? How can I index each row of each column (all values)? - Can I set number of partitions for
luceneRDD?