Open files in spark with given timestamp
<p>I use newAPIHadoopFile in my scala class to read text files from HDFS as below</p>

<pre><code>val conf = new SparkConf
val sc = new SparkContext(conf)
val hc = new Configuration(sc.hadoopConfiguration)
val dataFilePath = "/data/sample"
val input = sc.newAPIHadoopFile(dataFilePath, classOf[TextInputFormat], classOf[LongWritable], classOf[Text], hc)
</code></pre>

<p>But now I just need to open files within a range of timestamp.
Any idea on how I could do that?</p>

<p>Thanks,
Jeff</p>