Scala, Design Patterns, Programming, Factory Pattern.
getOptions(): String = "json options specific for json files" } class parquetOptions extends Options { override def getOptions(): String = "parquet options specific for parquet files" } And the Reader and its implementations have changed like the following to obtain specific Options for them and