title: scala spark paritions: understanding the output
body: <p>I am running spark and scala. What is the meaning of the line that i get when i run <code>rawblocks.partitions.length</code>? My linkage folder had 10 files. </p>
  
  <ol>
  <li>what does <code>res1</code> and <code>Int</code> stand for?  </li>
  <li><p>Also is there a place where i
  can find official documentation for spark methods? For example i
  want to see details of <code>textFile</code>.</p>
  
  <p>spark version 1.6.1</p>
  
  <pre><code>Using Scala version 2.10.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_65)
  
  scala&gt; val rawblocks=sc.textFile("linkage")
  rawblocks: org.apache.spark.rdd.RDD[String] = linkage MapPartitionsRDD[3] at textFile at &lt;console&gt;:27
  
  scala&gt; rawblocks.partitions.length
  res1: Int = 10
  </code></pre></li>
  </ol>