concept option() in category spark

appears as: option()
Spark in Action, Second Edition

This is an excerpt from Manning's book Spark in Action, Second Edition.

If you unchain the method chain, you can see that the read() method returns an instance of DataFrameReader . This is the object you configure using the option() methods, the schema() method, and finally the load() method.

  • You can specify ingestion format by using format() , and options by using option() .