https://jgp.ai/2018/04/28/file-ingestion-in-apache-spark/the-road-to-ingestion-is-in-chapter-7-of-spark-with-java-2/
The road to ingestion is in chapter 7 of Spark with Java