how can i only select 2nd and 5th column from a csv file (no column name in file) in java spark, code as below:
Dataset<Row> dataset = getSparkSession().get().read()
.option("delimiter", "|")
.option("header", false)
.csv(fileName);