private void initializeCSVReader(FunctionContext context) throws IOException { this.csvReader = new CSVReader(new FileReader(context.getParameterAsString(IP_CSV_FILE))); this.headers = csvReader.readNext(); if (headers == null) { throw new RuntimeException("no data found in input csv file"); } }