code: public static JavaRDD<Row> createJavaRowRDD(JavaRDD<Cells> cellsRDD) throws UnsupportedDataTypeException {
          JavaRDD<Row> result = cellsRDD.map(new Function<Cells, Row>() {
              @Override
              public Row call(Cells cells) throws Exception {
                  return CellsUtils.getRowFromCells(cells);
              }
          });
          return result;
      }
docs: Creates a JavaRDD of SparkSQL rows
  @param cellsRDD RDD of cells for transforming.
  @return Java RDD of SparkSQL rows
  @throws UnsupportedDataTypeException