Scala, Design Patterns, Programming, Factory Pattern.
String) extends Reader { override def open(): Unit = System.out.println(s"parquetReader opened parquet on path ${path} with ${options.getOptions}") override def options = new parquetOptions } Nonetheless It could also have been done the following for the csvReader for example. private case class