made class IndexRDD non private